I tired to run the following java codes via eclipse but I get the errors. So, what should I do? I am a beginer.
I tried the second answer of the page but it did not work for me. Eclipse error ... cannot be resolved to a type
ERROR
Exception in thread "main" java.lang.Error: Unresolved compilation problems:
JTable cannot be resolved to a type
JTable cannot be resolved to a type
at ppp/ppp.table.main(table.java:11)
CODES
package ppp;
import java.awt.Color;
import javax.swing.JFrame;
import javax.swing.JTable;
import javax.swing.table.DefaultTableModel;
public class table {
public static void main(String[] args) {
JTable table = new JTable();
}
}