File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Dialog Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Dialog" Watch "Dialog" New topic
Author

Dialog

ravikumar Chilukuri
Greenhorn

Joined: Sep 27, 2010
Posts: 14
Hi

i want to make the all background windows in my application dull when a dialog was opened. please suggest me a way to get this

Thanks & Regards
Ravi
Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 2095
    
    7
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.

Post your SSCCE that demonstrates the problem.
Greg Brannon
Bartender

Joined: Oct 24, 2010
Posts: 557
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
ravikumar Chilukuri
Greenhorn

Joined: Sep 27, 2010
Posts: 14
Hi

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.


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dialog
 
Similar Threads
Progress Bar
data locking; competing actions
Putting up Textbox for user log in
JDialog (non-modal) always on top
key listener not detected