I don't understand the question. By default when you use dialog.setVisible(true), that dialog will be display and have focus so the other Windows in your application will not be able to receive events.
I'll add my interpretation of the OP's question, but I don't know the answer. The OP is asking how to make the inactive windows 'look' inactive or unselectable. I've seen this done by changing the opacity or apparent brightness of the background windows by shading or dimming them. Is this sometimes controlled by the default look and feel?
Learning Java using Eclipse on OpenSUSE 11.2
Linux user#: 501795
Joined: Sep 27, 2010
Greg was right , i want to shade my background windows when a dialog was opened...
i'm achieving this by adding a glasspane with light gray color to every frame behind the dialog....
but i think its not the correct way to do so....
please help me out if there is any other alternative.
Note: i want this to happen only when a particular dialog was opened.