开发者

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

开发者 https://www.devze.com 2023-02-18 21:25 出处:网络
Is there a way that I can have a tabbed applicati开发者_开发知识库on, where if i drag a tab off the window, it opens that panel in a new frame?Yes it is possible but you will have to post a bit of sou

Is there a way that I can have a tabbed applicati开发者_开发知识库on, where if i drag a tab off the window, it opens that panel in a new frame?


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?

0

精彩评论

暂无评论...
验证码 换一张
取 消