开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜