Java Swing 桌面应用程序示例控制器或管理器?
好吧,我已经做了很多小型 Java 应用程序,所以我有点迷失了我想要/应该如何做到这一点。我有用 php 编写的 Pharma Return 程序。我想变成一个桌面应用程序,
Main Program (main.java)
Return Dept (return.java)
Sales Dept (sales.java)
在Android中处理的最佳方法是什么如果我想从主要到销售或销售到退货我会调用新意图如何在java桌面应用程序中处理这个?
抱歉,我是一个通过示例学习的人,过去一周我到处寻找差异方法,但还没有灯泡亮起来
,谢谢, 埃里克
Ok I have done alot of small java apps so im a bit lost on how I want/should do this. I have Pharma Return program I wrote in php. 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??
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果我正确理解
Intent
,它是用于在不同的应用程序之间导航。在 Swing 桌面上,导航通常由菜单、按钮、选项卡、工具栏等处理。在进行特定设计之前,浏览常见的 Swing 组件。给定两个模块:销售和退货,JTabbedPane
< /a> 可能是一个合适的选择。If I understand
Intent
correctly, it is used to navigate among separate applications. 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. Given two modules, sales and returns,JTabbedPane
might be a suitable choice.