Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Mdi child form

 
Suat Ugurlu
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried JInternalFrames?
 
Suat Ugurlu
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Garandi Garandi
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a look at chapter 16 of Swing by Robinson web page
Thank you
Garandi
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic