Forums Register Login

Frame as MODAL

+Pie Number of slices to send: Send
Hai Friends
I am new to Java
I have a doubt.
I have 2 Frames like..Frame1 and Frame2
In Frame1 a Button called "OK"
When i click that button (OK) from Frame1 ....the second Frame should open as a MODAL Frame.
Is it possible to Call another Frame class as MODAL ?
If anybody knows about this...please help me.
What shall i do in Frame1 and Frame 2 to make Frame2 as MODAL Frame.
Thanks in advance
Yours
Rajesh
+Pie Number of slices to send: Send
Hi Rajesh,
You can not make Frames modal. The only class that can be modal is a Dialog. Look at the constructor of JDialog or Dialog to see where to specify if it is modal or not upon setvisible.
Regards,
Manfred.
You get good luck from rubbing the belly of a 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 1488 times.
Similar Threads
Doubt in Swing
How to make a frame modal
JFrame focus
Getting data from one frame into another
returning the result in different frame
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 07:07:05.