Re: dockable windows



On Dec 19, 7:21 am, Bent C Dalager <b...@xxxxxxxxxxx> wrote:
On 2008-12-19, lbrt...@xxxxxxxxx <lbrt...@xxxxxxxxx> wrote:

gimp lets you detach all windows and let them float around anywhere
on the screen(s)
~
How can you do that with java? AFAIK java only lets you dock and
float around windows -inside a frame-

You make a new frame and put your contents inside that. Swing
buttonbars do something like this when you drag them outside the app
window.

~
OK, I found a good example here
~
http://www.informit.com/articles/article.aspx?p=21119&seqNum=3
~
but Swing designers apparently envisioned people would only need it
for toolbars and not general windows
~
http://java.sun.com/docs/books/tutorial/uiswing/components/toolbar.html
~
http://java.sun.com/javase/6/docs/api/javax/swing/JToolBar.html#setFloatable(boolean)
~
http://java.sun.com/javase/6/docs/api/index-files/index-19.html
~
.. . .
setFloat(String, float) - Method in interface javax.sql.RowSet
Sets the designated parameter to the given Java float value.
setFloatable(boolean) - Method in class javax.swing.JToolBar
Sets the floatable property, which must be true for the user to
move the tool bar.
setFloating(boolean, Point) - Method in class
javax.swing.plaf.basic.BasicToolBarUI
.. . .
~
Am I right? I hope I am not
~
lbrtchx
.