No problem. It can be confusing because JFrame contains a few methods that actually are just convenience methods that access the contentPane automatically. So calling JFrame.setLayout() is actually...
Type: Posts; User: KevinWorkman
No problem. It can be confusing because JFrame contains a few methods that actually are just convenience methods that access the contentPane automatically. So calling JFrame.setLayout() is actually...
Ah, the problem is this line:
frame.getContentPane().setLayout(new BoxLayout(frame, BoxLayout.PAGE_AXIS));
You're setting the layout of the JFrame's contentPane, but you're passing the JFrame...
Hmm, this seems like it should work. Are you sure the JFrame isn't just popping up under the window the applet is in?
I'd love to test this, but I can't do that without an SSCCE- the shorter, the...
What do you mean when you say that it "will not work"?