I'm working on a lab for class and it's my first GUI environment. When I try to run the program it asks me "Select a way to run 'Lab 8'" and then two options - Java Applet or Java Application. It doesn't matter which I choose, I then get an error message "Selection does not contain a main type." Do I need to do anything for Eclipse to create GUI programs, like an add-on or something?
This is the only code I have so far. Not sure if that matters. Thanks
import javax.swing.*;
import java.awt.*;
public class TicTacToe extends JFrame{
private ImageIcon cross = new ImageIcon ("FlowerX.jpg");
ImageIcon not = new ImageIcon ("Owl.gif");
public TicTacToe(){
Container container = getContentPane();
container.setLayout(new GridLayout(3, 3));
}
}