paint() method would not draw on JPanel
问题 I tried few source codes of drawing in java and they were working fine, but when i tried to make one of my own I could not get the paint(Grahpics g) method to work! I looked again at the codes I have and checked some of the tutorials in Oracle's pages but i don't seem to be able to know why it would not work. can someone please check it and tell me what is wrong here?? main method: public class main { public static void main(String[] args) { new board(); } } board: import java.awt