Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.12 seconds.

  1. Replies
    7
    Views
    1,889

    Re: Trouble with my applet

    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...
  2. Replies
    7
    Views
    1,889

    Re: Trouble with my applet

    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...
  3. Replies
    7
    Views
    1,889

    Re: Trouble with my applet

    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...
  4. Replies
    7
    Views
    1,889

    Re: Trouble with my applet

    What do you mean when you say that it "will not work"?
Results 1 to 4 of 4