I am new to java, and I am encountering an error that (after half an hour of searching) has not revealed itself. I have two classes (this is from me following a tutorial):
Board.java:
package skeleton;
import javax.swing.JPanel;
public class Board extends JPanel {
public Board() {}
}
and Skeleton.java (I have stripped the non relevant material):
package skeleton;
import javax.swing.JFrame;
public class Skeleton extends JFrame {
public Skeleton() {
add(new skeleton.Board());
}
public static void main(String[] args) {
new Skeleton();
}
}
I compile both of them, but Skeleton gets the error that it can't find Board. Does anyone know why javac can't find a class that is right there?
Edit: They are both in the same folder named 'skeleton'. Also, my OS is windows xp prof.