I usually linked to this question to give some advice on why you should not extend JFrame
because it's a rigid component and cannot be placed inside another one, and instead they should build their Swing GUI based on JPanel
s. This was a good question (IMO) which had some good answers.
As I don't have 10k rep I cannot see why was it deleted, so I would like to know. This was an old question and last time I visited it I was able to see it, I'm teaching a coworker (a trainee) how to deal with arrays and he asked me why not extend JFrame
and there were really good explanations.