• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

Java MDI Form with internal Frames and Navigation buttons

 
Ranch Hand
Posts: 33
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 3324
32
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank you so much. It worked.
 
Nothing up my sleeve ... and ... presto! A tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic