简体   繁体   English

Java Swing桌面应用程序示例控制器或管理器?

[英]Java Swing Desktop App Example controller or manager?

Ok I have done alot of small java apps so im a bit lost on how I want/should do this. 好吧我已经做了很多小的java应用程序,所以我有点失去我想要/应该这样做。 I have Pharma Return program I wrote in php. 我有我在PHP写的Pharma Return程序。 I want to turn into a desktop app what is the best way to handle 我想变成一个桌面应用程序,什么是最好的处理方式

Main Program (main.java)

Return Dept (return.java)

Sales Dept (sales.java)

In Android If I want to go from main to sales or sales to Returns I would call the new intent How do I handle this within a java desktop app?? 在Android中如果我想从主要销售到销售或销售到退货我会调用新的意图如何在Java桌面应用程序中处理这个?

Sorry Im a learn by example guy and I have searched everywhere looking for diff methods the past week and just havent had a lightbulb come on 对不起我是一个通过示例的人学习,我在过去的一周里到处寻找差异方法,只是没有一个灯泡来了

Thx, Eric 谢谢,埃里克

If I understand Intent correctly, it is used to navigate among separate applications. 如果我正确理解Intent ,它将用于在单独的应用程序之间导航。 On the Swing desktop, navigation is usually handled by menus, buttons, tabs, tool bars, etc. Before committing to a particular design, it might help to browse through common Swing components . 在Swing桌面上,导航通常由菜单,按钮,选项卡,工具栏等处理。在提交特定设计之前,浏览常见的Swing组件可能会有所帮助。 Given two modules, sales and returns, JTabbedPane might be a suitable choice. 鉴于销售和退货两个模块, JTabbedPane可能是一个合适的选择。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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