Using Inheritance to Customize Frames
- Use inheritance for complex frames to make programs easier to understand
- Design a subclass of JFrame
- Store the components as instance fields
- Initialize them in the constructor of your subclass
- If initialization code gets complex, simply add some helper methods