?
Solved

JToolBar

Posted on 2006-05-08
4
Medium Priority
?
691 Views
Last Modified: 2008-09-23
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
0
Comment
Question by:waffe
  • 2
  • 2
4 Comments
 
LVL 14

Expert Comment

by:hoomanv
ID: 16632365
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
 

Author Comment

by:waffe
ID: 16632545
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
 
LVL 14

Accepted Solution

by:
hoomanv earned 600 total points
ID: 16633046
I've found a solution
look at BasicToolBarUI class
it is capable of controling the floating/docking state of toolbar
0
 

Author Comment

by:waffe
ID: 16634338
Yes that is it - thanks a million - well 150 anyway :)

waffe
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This video teaches viewers about errors in exception handling.
Suggested Courses
Course of the Month17 days, 13 hours left to enroll

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question