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
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.
Write once, run anywhere, because there's nowhere to hide! - /. A.C.