Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / February 2006

Tip: Looking for answers? Try searching our database.

Cursor question

Thread view: 
Lee - 27 Feb 2006 20:28 GMT
Hi,

I have a component that i want to to change the mouse cursor for when
inside the component area, i am using mouseEntered and mouseExited,
when entered i have this line of code;-

this.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));

which works great, but when exiting i have this;-

this.setCursor(Cursor.getDefaultCursor());

which doesnt seem to do a thing, the hand cursor remains.  Is there
anything i am missing out?

thanks in advance....
Vova Reznik - 27 Feb 2006 20:50 GMT
> Hi,
>
[quoted text clipped - 12 lines]
>
> thanks in advance....

How you want to see changes if you define cursor for component your
mouse already left?
Here is no needs for any listeners.
Lee - 27 Feb 2006 20:53 GMT
its OK i have sorted it ... thanks


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.