Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Java MDI Form with internal Frames and Navigation buttons

 
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
Saloon Keeper
Posts: 3145
74
  • 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: 2703
10
  • 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: 5155
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
Saloon Keeper
Posts: 3145
74
  • 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.
 
Think of how stupid the average person is. And how half of them are stupider than that. But who reads this tiny ad?
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!