File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dialog

 
ravikumar Chilukuri
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2474
8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 563
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
ravikumar Chilukuri
Greenhorn
Posts: 14
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.


  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic