开发者

How to make child dialog popped-up from and embedded into the parent window by double clicking it in Java SWing?

I want a main window with several child widgets and I want the child widget to be shown in the main frame at the same time and they can coordinate with each other to layout through the main window area. When I double click the child widget it can pop-up and when double click 开发者_运维技巧again it can embed back. I have done this in QT by QDockWidget before and I've learned that the JavaDocking Framework can achieve this, but I want to know whether it can be done just by SWing framework?


If you're asking for full featured docking, you should probably edit your question title to reflect that.

Docking is pretty complicated as it involves dynamic layout, drag-n-drop, and many other things. You could roll your own, essentially with nested JSplitPane and JTabbedPane and a lot of time.

Besides JavaDocking, consider the open source (MIT licensed) FlexDock, or the commercial JIDE Docking.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜