How to write modular code in java swee netbeans applications?
1 answer
In larger swing projects I am dealing with an application like this:
-
You have one class for each GUI element like JPanel, JDialog, etc.
-
Use a separate package for each screen, especially if you need to implement custom TableModels or other complex data structures.
-
Don't use anonymous and inner classes, implement an ActionListener instead and check ActionEvent.getActionCommand () there.
+2
a source to share