You probably are missing a bracket somewhere.
Type: Posts; User: javapenguin
You probably are missing a bracket somewhere.
Yes.
Also, I think it'd be best if your two classes
MainFrame and SubFrame were in separate java files from the main one, and from each other.
Also, you don't have a constructor in MainFrame...
Well, you don't have constructors for your two classes,
MainFrame and Subframe.
That might be part of the problem.