JBTabbedPane with drag and drop functionality on tabs
Hello,
I am trying to implement a JBTabbedPane of which I can drag and drop the tabs to change the order of the tabs. Is there a standard implementation from Intellij that I should use or should I implement my own?
Thanks in advance
Please sign in to leave a comment.
JBTabbedPane does not have any special support for tab drag & drop, so you can't reuse anything. If you use JBTabs instead of JBTabbedPane, you can enable tab drag & drop by calling setTabDraggingEnabled(true).
Okay, thanks for the answer :)
Is there an easy way to implement the functionality of draging a tab out and docking it, like the tabs from the debug panel? Or is the best way to implement this to creating something like RunnerContentUi?
RunnerContentUi is the only component in our UI framework that supports docking of tabs.
Okay, thanks man