简体   繁体   中英

How can a drag a tab into a new window with Java Swing?

有没有一种方法可以使用选项卡式应用程序,如果我将选项卡从窗口中拖出,它将在新框架中打开该面板?

Yes it is possible but you will have to post a bit of source code, to see what you have done so far. I found this link that maybe is interesting to you:

http://java-swing-tips.blogspot.com/2008/04/drag-and-drop-tabs-in-jtabbedpane.html

It explain how to drag and drop tabs, maybe you can apply the same principle to your idea.

Also in this forum there is a similar question, maybe you wanna have a look:

How to implement draggable tab using Java Swing?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM