Article View: borland.public.jbuilder.java.language
Article #19040Re: Changing Mouse Pointer
From: Alex Humphreys
Date: Tue, 17 Mar 1998 00:00
Date: Tue, 17 Mar 1998 00:00
40 lines
2179 bytes
2179 bytes
Thanks. Thanks to Conrad's suggestion, I figured out a potential though not
ideal solution:
wait_Dialog.dispose();
this.setCursor(Cursor.getDefaultCursor());
this.setVisible(false);
this.setVisible(true);
You get an exceptionally brief flicker of the window, but in my mind that's
better than not losing the hourglass.
i still think there has to be a better way, maybe involving throwing a
mouse_move event. I don't know how to do this, though. If you have any more
ideas or successes, please post them here. Thanks.
Alex Humphreys wrote:
> Works like a charm (thanks) except for one thing. The cursor won't change
> until the mouse moves. My guess is that it only does it on a Mouse event
> of some kind. How can I throw that mouse event? (My fear is that someone
> will take their hand of the mouse, waiting for the wait cursor to go away
> which it never will). Not a big deal, but it's all in the details....
>
> I haven't found if cursor can be changed anywhere other than component,
> but that suits my needs; when people point to something other than the
> component, they should be able to play with that the computer churns away
> in the background.
>
> James D. Frentress wrote:
>
> > Tad Frysinger wrote:
> >
> > > I *believe* (better check me on this) that cursors can be changed at
> > > the
> > > component level only. Try this:
> >
> > i believe he's right but if you find otherwise, post here because i've
> > asked the same question and got no answer.
Technical Details
Message-ID:
<350E9578.65B72E30@sema4.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<350966F1.9C54504@sema4.com> <MPG.f7318c9c56751899897df@forums.borland.com> <35099C8E.44C30F0@ForAWhile.com> <3509A82F.CBEFB946@sema4.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,cc7ddc2bbfa4aa23 X-Google-Attributes: gidf74b3,public From: Alex Humphreys <ahumphreys@sema4.com> Subject: Re: Changing Mouse Pointer Date: 1998/03/17 Message-ID: <350E9578.65B72E30@sema4.com> X-Deja-AN: 334911276 Content-Transfer-Encoding: 7bit References: <350966F1.9C54504@sema4.com> <MPG.f7318c9c56751899897df@forums.borland.com> <35099C8E.44C30F0@ForAWhile.com> <3509A82F.CBEFB946@sema4.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.language