Hello I am new to the forum so first I would like to say hello!
I am a beginner and just started learning to use Java 2 days ago. I am having an issue with getting a display box to show up. I am working from a tutorial at the moment and I am using the Eclipse IDE however when I try to compile and run I receive an error that states
Severity and DescriptionPath Resource Location Creation Time Id
The serializable class Board does not declare a static final serialVersionUID field of type long Uadventure/src/uadventure Board.java line 5 1352751766061 40
Here is the code I am working with:
package uadventure;
import javax.swing.JFrame;
public class Board extends JFrame {
public Board() {
add(new Board());
setTitle("Display");
setDefaultCloseOperation(EXIT_ON_CLOSE);
setSize(1280, 800);
setLocationRelativeTo(null);
setVisible(true);
setResizable(false);
}
public static void main(String[] args) {
new Board();
}
}
Getting a box to display just isn't working. Like I said I am working from a tutorial and I even tried using the tutorial code as well and the same problem arises. I have been doing alot of reading and understand how things work but I seem to struggle getting the basics of a project going once I can get the display working I can then move onto getting things together. Any help with this problem would be greatly appreciated.
Thanks
Justin