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

5 comments
Comment actions Permalink

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).

0
Comment actions Permalink

Okay, thanks for the answer :)

0
Comment actions Permalink

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?

0
Comment actions Permalink

RunnerContentUi is the only component in our UI framework that supports docking of tabs.


0

Please sign in to leave a comment.