wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes Mdi child form Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Mdi child form" Watch "Mdi child form" New topic
Author

Mdi child form

Suat Ugurlu
Greenhorn

Joined: Mar 16, 2004
Posts: 14
Hi,
Can anyone tell me how to create mdi child forms in Java.
I want to create two child windows inside a main window and
be able to use "cascade windows","tile windows vertically","tile windows
horizantaly" etc..
I use Jbuilder for some time but couldn't see any example or component
to create mdi forms.
Regards,Suat Ugurlu.
Ted Reynolds
Greenhorn

Joined: Mar 16, 2004
Posts: 20
Have you tried JInternalFrames?
Suat Ugurlu
Greenhorn

Joined: Mar 16, 2004
Posts: 14
Yes I tried, but was not successfull much since
it was not like real mdi child frames.
I think I need more than JInternalFrame may be writing a new one.
Thanks,Suat
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

I've done these exact same operations before using JDesktopPane and JInternalFrame. They aren't just there automatically... in your menu item actions for "cascade", "tile vertically", "tile horizontally", etc. you just get references to all the JInternalFrames from the JDesktopPane, and lay them out yourself using setBounds() and calculating based on the size of the JDesktopPane.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Garandi Garandi
Ranch Hand

Joined: Jan 07, 2003
Posts: 192
Have a look at chapter 16 of Swing by Robinson web page
Thank you
Garandi
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Mdi child form