jonathan.giles at oracle.com
Thu Mar 15 13:50:59 PDT 2012
On 16/03/2012 5:25 a.m., martin at percossi.com wrote:
> 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.
I would imagine writing your own solution would be quite difficult, as
the nodes are not exposed via any API. You could possibly find the node
via a lookup() call, but even then I'm not sure you'll get the visuals
If you are happy to wait, the best approach to get the TabPane/Tab API
to support this would be to file a feature request on the Jira tracker
If you are wanting this sooner, another option (after filing the Jira
RFE above) would be if you downloaded OpenJFX, reviewed the TabPaneSkin
source code, and added support in there directly. You could then provide
the patch to the OpenJFX project via the Jira issue and it could
possibly be integrated into a future release of JavaFX.
> 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? ;)
I'll leave this to the glass team to answer.
More information about the openjfx-dev