Apple interview question

The question about JFrame code... where I had to find the problem.