5YrsLaterDBA
5YrsLaterDBA

Reputation: 34750

how to have more than one JToolBar in one screen?

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

Answers (1)

Eugene Ryzhikov
Eugene Ryzhikov

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

Related Questions