• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Adding Toolbar in DesktopPane (MDI Application)

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am creating MDI application in Java and using Desktop pane and internal frame for this. well
I a m adding menu bar that is working but I wana to add Toolbar as well so in design mode its showing toolbar as i run application toolbar is not appearing while menubar is ok.
Please Tell me how can i do that in desktop pane.
Regards
Atif
 
Bartender
Posts: 4121
IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
matif923 please re-read the JavaRanch UserName Guidelines and change your user name accordingly. User names are required to be in the form "First Name" + space + "Last Name".

If you are adding the Toolbar directly to the desktop pane, you will have to call setBounds on the toolbar to tell it where to show up and how big it is, because the desktop pane has a null layout by default. If your content pane is your desktop pane then you will have to do this. If your desktop pane is just added to your content pane you can put the toolbar in BorderLayout.NORTH of a JPanel, and put the desktop pane in BorderLayout.CENTER of the JPanel and then add the JPanel to the content pane.

-Nate
reply
    Bookmark Topic Watch Topic
  • New Topic