Reputation: 34750
How to put more than one JToolBar on one screen and allow them floating. Usually we put JToolBar on a container with BorderLayout. if we put all JToolBars on a panel then put the panel to the container, we will have problem to allow them floating. any ideas?
Upvotes: 2
Views: 211
Reputation: 17359
Simple. Instead of toolbar have a panel. This panel should have a flow layout. Then start adding toolbars to it. Toolbar is floating by default, so you should be able to move it around.
Upvotes: 1