简体   繁体   中英

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. 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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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