Which means you didn't copy him exactly. ;)
If your problem is solved you can now click on: Thread tools>mark this thread as solved
Type: Posts; User: Brt93yoda
Which means you didn't copy him exactly. ;)
If your problem is solved you can now click on: Thread tools>mark this thread as solved
Are you sure that you're doing exactly what Norm is suggesting?
Post an updated version of your code.
Do what copeg said. Make another class.
Example class
private class ButtonListener implements ActionListener{
public void actionPerformed(ActionEvent e){
//Code here
}
}
Surround your code in it makes your code alot easier to read!