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??
Type: Posts; User: coyboss
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??
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...
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...