Draggable tabs

martin at percossi.com martin at percossi.com
Thu Mar 15 09:25:13 PDT 2012

Hello list,

First off, let me congratulate the team on a terrific job with JavaFX 2.x. *Finally*, a GUI framework that looks nice straight of the bat. And animations. And CSS... I could go on and on :) Keep up the great work!

Second, if I'm sending this to the wrong list, please let me know and apologies in advance.

My question: if I'm not mistaken, javafx.scene.control.Tab is not draggable. I'd like to be able to obtain the same behaviour as e.g. Chrome, where tabs can be rearranged by dragging the "handle". (At some point in the future, I want to extend this into a full-featured docking framework, where tabs can be pulled out of the main window and thereby create a new window. But we're getting ahead of ourselves.) I'd appreciate any pointers on how best to implement this functionality.

Second question (speculative): Is it possible to get a "raw" window handle (i.e. in Microsoft Windows)? Basically, if you're writing a VST plugin host, you need to provide a parent window handle within which the VST plugin can stuff its GUI. In the worst case, this would create an entirely new window, but ideally, I would be able to get a raw window handle and "place" the GUI into some part of the JavaFX GUI. Am I asking for too much? ;)

Many thanks in advance,

Martin Percossi

More information about the openjfx-dev mailing list