wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes how to make swing components ignore the user events ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to make swing components ignore the user events ??" Watch "how to make swing components ignore the user events ??" New topic
Author

how to make swing components ignore the user events ??

Sanjeev Charla
Ranch Hand

Joined: Apr 02, 2009
Posts: 90

initially listeners are added to components.
at some time we want to ignore the events generated by user.
after some time we want the listeners to work as before.
instead of disabling and enabling each and every component, how to achieve this??

Thank you,
Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 2204
    
    7
Why would you want to do this?

Your question is to vague to give a specific answer.

Maybe the Disabled Glass Pane will help.
Sanjeev Charla
Ranch Hand

Joined: Apr 02, 2009
Posts: 90

Thanks for the reply,

when the application is busy in doing something in background, i change the cursor to busy cursor, and also that any user events will not be accepted.

this is my requirement.
 
 
subject: how to make swing components ignore the user events ??