dcsimg
can't make cursor change on MacOSX?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Asa_Hson
Posted On:   Wednesday, October 1, 2003 09:35 AM



Is the java method "setCursor" supposed to be used on MacOSX? How, or if not, what is?


My app extends JFrame. I thought it would be ok to simply write:


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



Re: can't make cursor change on MacOSX?

Posted By:   Bahman_Barzideh  
Posted On:   Wednesday, October 1, 2003 03:10 PM

It should work. I run the latest version of 1.4.1 and have experienced
some issues with setCursor () where the function is
getting executed but the cursor does not change as expected. I suspect
this is generally due to the fact that the component you are trying to set
the cursor on does not have the focus. I have generally managed to
fix this by grabbing the focus (for the component) before
setting its cursor.


One more thing: I am not sure setting the cursor on a JFrame would have any effect at all.
About | Sitemap | Contact