Link to home
Start Free TrialLog in
Avatar of waffe
waffeFlag for United States of America

asked on

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
Avatar of hoomanv
hoomanv
Flag of Canada image

im not sure if you can do it with JToolbar alone
try some third party libraries like
http://www.jidesoft.com/products/action.htm
Avatar of waffe

ASKER

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
ASKER CERTIFIED SOLUTION
Avatar of hoomanv
hoomanv
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of waffe

ASKER

Yes that is it - thanks a million - well 150 anyway :)

waffe