Depending on which tab is clicked in the JTabbedPane, a corresponding panel will be created.
I have created a simple test program as follows.
Currently all the source code are in the same file.
I like to extract all the panel codes and put them in their own files like the following files.
How to do that?
Is this the correct approach or something should be done in ChangeListener?
Panel1.java
The right hand side of the last button of this program does not align horizontally with other components (e.g. JTextField).
How to make the right hand side of the last button ("b4") align horizontally with other components ?