JToolBar

Hi,

I am working with the JToolBar and I understand that I can make the component floatable and dock able with this command "toolBar.setFloatable(true);"

Question - how do I make the toolbar start in a floatable state? This code "toolBar.setFloatable(true);" allows me to drag the toolbar out of it boarder layout and into a floatable state, but I would rather it start in its floatable state and not be dock able.
Is there a startState = floating command and a dockable = false command for the JToolBar?

Thanks,

waffe
waffeAsked:
Who is Participating?
 
hoomanvCommented:
I've found a solution
look at BasicToolBarUI class
it is capable of controling the floating/docking state of toolbar
0
 
hoomanvCommented:
im not sure if you can do it with JToolbar alone
try some third party libraries like
http://www.jidesoft.com/products/action.htm
0
 
waffeAuthor Commented:
Wow! that seems like great software but it is not free and there very sneaky about their price - so for now, I will have to keep looking. If swing can't do it, maybe SWT has a toolbar that is more changable?

Thanks,

waffe
0
 
waffeAuthor Commented:
Yes that is it - thanks a million - well 150 anyway :)

waffe
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.