tags:

views:

23

answers:

1

How to check the JToolbar is docked on my JFrame or it is draged out with its own window?

+1  A: 

Use the isFloating() method from the BasicToolBarUI class.

camickr
but how can I get the BasicToolBarUI of the JToolBar? getUI() methed return ToolBarUI not the BasicToolBarUI.
5YrsLaterDBA