Search:

Type: Posts; User: coyboss

Search: Search took 0.15 seconds.

  1. Replies
    5
    Views
    2,814

    Re: Trying to add a close button

    so are you talking about using the f.add (new JButton(:closeButton:)); method??
    If so I already tried that and it said it couldn't find the jbutton.

    so where else would I add it??
  2. Replies
    5
    Views
    2,814

    Re: Trying to add a close button

    OK I tried to add it to the run command, but it still gives errors.

    Here is the updated code:


    // Import the swing and AWT classes needed
    import java.awt.EventQueue;
    import...
  3. Replies
    5
    Views
    2,814

    Trying to add a close button

    HI all,

    I am trying to add a close button to some basic swing code I was playing with, but no matter where I put the code for the Jbutton I get errors.

    Here is the code for the program as is...
Results 1 to 3 of 3