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 Blocking Component Input 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 "Blocking Component Input" Watch "Blocking Component Input" New topic
Author

Blocking Component Input

Isaac Hewitt
Ranch Hand

Joined: Jul 24, 2006
Posts: 190

Is it possible to block input to components in a JDialog using a glass pane? If not, other than disabling the components, is there any other way to block input?
Thanks.
Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 2177
    
    7
Yes its possible, the Swing tutorial has an example of using a Glass Pane.
Isaac Hewitt
Ranch Hand

Joined: Jul 24, 2006
Posts: 190

Sorry for this late reply. I was able to find and fully integrate the required class in the JDialog, and it saves alot of work with setEnabled() for every component. Thanks for the link.
 
wood burning stoves
 
subject: Blocking Component Input