Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to make swing components ignore the user events ??

 
Sanjeev Charla
Ranch Hand
Posts: 90
Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2610
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 90
Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic