🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #8604

Re: setCursor action

#8604
From: John P. McGrath
Date: Tue, 01 Aug 2000 00:00
15 lines
951 bytes
On Tue, 1 Aug 2000 14:06:31 +0200, JPBallet wrote:

> I have a JWindow class witt a JPanel container inside and
> a JButton inside the JPanel.
> How can i do to change the cursor on  mouseEnter action?
> setCursor() don't works

setCursor() works, but you normally should not need to call it every time 
the mouse enters or leaves your component.  Once you call it, the cursor 
will be updated whenever the mouse enters the component, and reset when 
it leaves.

-- 
Regards,
John McGrath
Technical Details
Message-ID: <MPG.13f159f46c3573f8989a84@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <8m6dop$ees2@bornews.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,a9095c28cba148d7
X-Google-Attributes: gid111d45,public
From: John P. McGrath <JPMcGrath@fast.net>
Subject: Re: setCursor action
Date: 2000/08/01
Message-ID: <MPG.13f159f46c3573f8989a84@forums.borland.com>
X-Deja-AN: 653467664
References: <8m6dop$ees2@bornews.borland.com>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing