how to add multiple toolbar to a frame?
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Alan_Chang
Posted On:   Sunday, July 15, 2001 08:23 PM

how to add multiple toolbar to a frame?

Re: how to add multiple toolbar to a frame?

Posted By:   Rob_Smallwood  
Posted On:   Tuesday, July 17, 2001 10:23 AM

What you can do is add your JToolBar's to container
such as a JPanel instead of a JFrame. This isn't essential but it helps to keep things neat and tidy!



Then you'd add the JPanel to the JFrame (Obvious..)



Toolbars are added to containers in the same manner
as any other Component and are subject to the Containers layout manager.



So just set the layout manager to something that aesthetically complements toolbars i.e. FlowLayout(FlowLayout.LEFT)
and add your number of JToolBar's!

About | Sitemap | Contact