This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Swing / AWT / SWT and the fly likes waiting cursor for frame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "waiting cursor for frame" Watch "waiting cursor for frame" New topic
Author

waiting cursor for frame

J Hartley
Ranch Hand

Joined: Mar 29, 2001
Posts: 52
Hi, I have got a frame with a number of TextFields and various other visual components.
I set the Cursor for the frame to a waiting symbol. The trouble is that when I move the mouse over each visual component, my waiting cursor is overriden by the Cursor of the visual component.
Is there any way to make the Cursor of the frame override the visual components cursor without having to set each of the visual components cursor to null?
Thanks,
Joe Harvey
Rene Liebmann
Ranch Hand

Joined: May 02, 2002
Posts: 196
Yes, the frame has a method getGlassPane(). You have to set the component which is returned by this method to visible and you have to set the wait cursor to this component.
Glass pane is a component, which is on the top of all other components.
J Hartley
Ranch Hand

Joined: Mar 29, 2001
Posts: 52
Hi, thanks for your help
Joe
 
Consider Paul's rocket mass heater.
 
subject: waiting cursor for frame