Hello,
I'm using the Head First
Java book, chap. 12, page 364.
The example program given creates the following error trying to run it.
"Exception in
thread "main" java.lang.NoSuchMethodError: Main"
Does anyone know why I am getting this error? Also any suggestions on where
to look for explanations of these types of errors?
This is the example program from the book...
import java.awt.*;
import javax.swing.*;
class MyDrawPanel extends JPanel {
public void paintComponent(Graphics g) {
g.setColor(Color.orange);
g.fillRect(20,50,100,100);
}
}
Thanks !