Originally Posted by
nirro
The serializable class Mainp does not declare a static final serialVersionUID field of type long
Declare the missing variable as the warning states: a static final variable of type long with the name serialVersionUID, and give it a value. Search keyword serialVersionUID for details on what it is for.
Originally Posted by
nirro
The import java.awt.event.ActionEvent is never used Mainp.java /Gui-test/src line 8 Java Problem
The import java.awt.event.ActionListener is never used Mainp.java /Gui-test/src line 7 Java Problem
These two imports are not used, so either remove them or use them.
You said when you add "implements ActionListener" you get an error... implement ActionListener like you need to, and post that error if you need help with it. Follow the tutorial suggestion in post #4
or this one here.
Also see this post on cross posting