如何在Java Swing中将gui集成到另一个gui中? [英] how to integrate a gui into another gui in java swing?
本文介绍了如何在Java Swing中将gui集成到另一个gui中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在Java Swing中将gui集成到另一个gui中?
我已经设计了一个GUI(数据库设置),但要求已更改.我在另一个主GUI中需要完全相同的一个.
任何帮助或建议都将受到欢迎.
how to integrate a gui into another gui in java swing?
I have already designed a GUI(DB Settings), but requirement has changed. I need the exact same one in another main GUI.
Any help or suggestions would be most welcome.
推荐答案
-将旧"项目构建为* .jar
-将罐子添加到新项目中
-需要时访问jar.
您必须创建新的App-Starter等.但是,可以很简单地访问旧应用程序中那些保持不变的部分.可以很好地扩展旧的GUI.
- build "old" project as *.jar
- add the jar to the new project
- access jar when needed.
You''ll have to create the App-Starter etc. new, but those parts of the old application, which remain unchanged can be accessed pretty simple. The old GUI can be extended fine.
这篇关于如何在Java Swing中将gui集成到另一个gui中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文