Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

waiting cursor for frame

 
J Hartley
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, thanks for your help
Joe
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic