andy-goryachev / FxDock

Docking framework for JavaFX (Work in Progress)
Apache License 2.0
46 stars 15 forks source link

How to change the tab order ? #11

Closed congluat closed 6 years ago

congluat commented 6 years ago

image then i want to move DemoCPane to the top like this image

andy-goryachev commented 6 years ago

the component responsible for tabs is FxDockTabPane. you should be able to get a pointer to it from your client node using, for example, FX.getAncestorOfClass() and then manually remove and reinsert nodes in the desired order with FxDockTabPane.removeTab(), FxDockTabPane.addTab() methods.

if you think there might be a case for a special method in FxDockTabPane, let me know or create a pull request.

does this answer your question?

congluat commented 6 years ago

I mean drag and drop function on UI. Like drag and drop tab browser in firefox/chrome

andy-goryachev commented 6 years ago

uh oh. missing functionality. thank you for noticing!

created #12.