Or typically JPanel. There are both conceptual and technical differences between JComponent and JPanel. The latter is a "generic" container that is typically used for layout of N components but can...
Type: Posts; User: andbin
Or typically JPanel. There are both conceptual and technical differences between JComponent and JPanel. The latter is a "generic" container that is typically used for layout of N components but can...
No, paint/paintComponent is not generally invoked by the programmer .... but by the framework!
And there is another important question. Your myGame class is not a "component" (doesn't extend for...