Article View: borland.public.jbuilder.java.swing
Article #613Re: Custom cursor gets changed back or wrong cursor gets used
From: Lori M Olson [TeamB]
Date: Sat, 19 Mar 2005 01:10
Date: Sat, 19 Mar 2005 01:10
38 lines
2379 bytes
2379 bytes
Michael D. Spence wrote:
> Ok, using a regular wait cursor solves the second problem (where the cursor
> is totally lost when
> the mouse moves outside the app's main window), but I wonder if it'll solve
> the first, where
> the custom cursor is only displayed while the mouse button is held down.
>
> I'm guessing this has something to do with the custom cursor not being
> available to whatever deals
> with the mouse leaving and re-entering the app window.
>
>
I think you need to learn a lot more about how the cursor works and
responds to mouse events/listeners.
Until you learn that, using a GlassPane will probably help:
http://java.sun.com/developer/onlineTraining/Programming/JDCBook/swing2.html
--
Regards,
Lori Olson [TeamB]
------------
Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.
Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html
Technical Details
Message-ID:
<423b7bde$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<423af16e$1@newsgroups.borland.com> <423b0e14$1@newsgroups.borland.com> <423b3a96$1@newsgroups.borland.com> <423b5b79@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,f15ed9bbb83edfc5 X-Google-Attributes: gid111d45,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Fri, 18 Mar 2005 18:10:00 -0700 From: "Lori M Olson [TeamB]" <javadragon@techie.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax;nscd1) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing Subject: Re: Custom cursor gets changed back or wrong cursor gets used References: <423af16e$1@newsgroups.borland.com> <423b0e14$1@newsgroups.borland.com> <423b3a96$1@newsgroups.borland.com> <423b5b79@newsgroups.borland.com> In-Reply-To: <423b5b79@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 142.179.181.200 Message-ID: <423b7bde$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1111194590 142.179.181.200 (18 Mar 2005 17:09:50 -0800) Lines: 38 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.maxwell.syr.edu!news-out.nntp.be!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail