• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java MDI Form with internal Frames and Navigation buttons  RSS feed

 
rayan alex
Ranch Hand
Posts: 33
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Im developing MDI Application using Java. I want my Application's main window look like in the image below. I managed to design MDI form and toolbar at the top. But i dont understand which containers i should use to load Internal Frames on right side, when i click Tool items or Buttons on the Left side. Also what should i use to place Buttons on the Left side.

Please follow the link to see how i want my main screen look like.
Sample Interface
 
Tony Docherty
Bartender
Posts: 3268
82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can't see any image in your post but if you are writing an MDI application then you probably should be using JDesktopPane with JInternalFrames. See the the tutorial http://docs.oracle.com/javase/tutorial/uiswing/components/internalframe.html
 
Rob Camick
Ranch Hand
Posts: 2801
15
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Your main frame would use a BorderLayout (the default layout). Then in the WEST you can add a panel containing your buttons. In the CENTER you add the JDesktopPane.
 
Darryl Burke
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tony Docherty wrote:I can't see any image in your post

That would be the image link in the cross post: http://stackoverflow.com/questions/15189784/java-mdi-form-with-internal-frames-and-navigation-buttons

rayan alex, please BeForthrightWhenCrossPostingToOtherSites.
 
rayan alex
Ranch Hand
Posts: 33
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I set the layout to Boarder Layout, I will have to leave East and South sections Empty. But I want toolbar at the top. Main Navigation Buttons at the Left and rest of the Frame fill with Internal Frames.
Please click the link to see sample. Sample
Please help me to understand how can i get my main screen like sample screen.
 
Tony Docherty
Bartender
Posts: 3268
82
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I set the layout to Boarder Layout, I will have to leave East and South sections Empty

Empty sections take up no space so what is the issue here?

But I want toolbar at the top. Main Navigation Buttons at the Left and rest of the Frame fill with Internal Frames.

As Rob has said you put your buttons WEST, the internal frames in the CENTER and your toolbar NORTH.
 
rayan alex
Ranch Hand
Posts: 33
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you so much. It worked.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!