Skip to main content

JDialog?

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
javamula
Offline
Joined: 2009-08-16

Dear All,
I have a Jframe (Super) which called InternalFrameListener...(Internal Frame).... with this method, i can Minimzed Both Frame (Super and Internal Frame) separately....
But i have a different scenario....when the Super Frame call the CHILD Frame (a username and password Entry)......i would like to make the Super Frame cannot be minimized (Disable)....while for the CHILD frame....when i minimized it....it will automatically minized the Super / Parent Frame....
Please guide which component able to do that? is it still Internal Frame, JDialog?
thank you and TIA.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
abhilash_1
Offline
Joined: 2011-03-01

Hi,
you can enable and disable the frames from your code..depending upon your context...
But from your scenario..it is better to go with JDialog..since you are going to use it for accepting username and password...
U can find below,how to use Dialogs..
http://download.oracle.com/javase/tutorial/uiswing/components/dialog.html
I hope this helps..
Regards,
Abhilash