Article View: borland.public.jbuilder.java.swing
Article #9094Re: Hide mouse cursor
From: John P. McGrath
Date: Tue, 23 May 2000 00:00
Date: Tue, 23 May 2000 00:00
17 lines
1002 bytes
1002 bytes
On Tue, 23 May 2000 10:53:35 -0700, Tom wrote:
> How to hide mouse cursor in JBuilder when cursor entered on panel ?
One way would be to create a custom cursor from a transparent image, and
then set that as the cursor for the panel.
Toolkit toolkit = Toolkit.getDefaultToolkit();
Image image = ...; // load a transparent image.
Cursor cursor = toolkit.createCustomCursor( image,
new Point(0,0), "Hidden Cursor" );
panel.setCursor( cursor );
--
John P. McGrath
<JPMcGrath@fast.net>
<jpm@nscs.fast.net>
Technical Details
Message-ID:
<MPG.13951affe8a7cb5d98994c@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<8gdgbg$ilr2@bornews.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,50612dd0cea41054,start X-Google-Attributes: gid111d45,public From: John P. McGrath <JPMcGrath@fast.net> Subject: Re: Hide mouse cursor Date: 2000/05/23 Message-ID: <MPG.13951affe8a7cb5d98994c@forums.borland.com> X-Deja-AN: 626561785 References: <8gdgbg$ilr2@bornews.borland.com> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.swing