I am working on a GUI based assignment (Sales Management Software) using Netbeans 7.1. It has 3 things –
- the interface
- the code
- the database
Now I want to know that, should i use 3 different packages for it or only one? Also what about the frames, only one frame and more panels will be the good approach for it or more frames?
You can split it up however it makes sense to you. You can always refactor if necessary, so if it’s a small application you can lump everything together in the beginning and start separating it into modules later.
The number of frames is also up to you. Some GUIs use separate frames, but others might use a single frame and display different panels by using a CardLayout or TabbedPane.