You can't have a Frame within a Frame. You can have a JInternalFrame within a JFrame, but not another JFrame. Why do want a JFrame inside of a JFrame? If it's because you want to reuse a class that currently extends JFrame, then, well, now you see one of the problems with extending top-level window classes. Rewrite it to extend JPanel (and it's main method can still create a JFrame to put itself inside of so it can still be used stand-alone, which is how it should be done).
masijade
Industrious Poster
4,253 posts since Feb 2006
Reputation Points: 1,471
Solved Threads: 494