• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Java MDI Form with internal Frames and Navigation buttons

 
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
 
Bartender
Posts: 3323
86
  • 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
 
Rancher
Posts: 3069
24
  • 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.
 
Bartender
Posts: 5167
11
Netbeans IDE Opera Java
  • 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: 3323
86
  • 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.
 
If you are using a rototiller, you are doing it wrong. Even on this tiny ad:
professionally read, modify and write PDF files from Java
https://products.aspose.com/pdf/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!