Forums Register Login

Dialog

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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?
+Pie Number of slices to send: Send
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.


If you settle for what they are giving you, you deserve what you get. Fight for this tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1154 times.
Similar Threads
Putting up Textbox for user log in
JDialog (non-modal) always on top
key listener not detected
data locking; competing actions
Progress Bar
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 18, 2024 21:00:38.