You should extend JPanel instead of JFrame, like in the tutorials. JFrame doesn't have a paintComponent() method, which is what you want, because paint() handles things like double buffering,...
Type: Posts; User: KevinWorkman
You should extend JPanel instead of JFrame, like in the tutorials. JFrame doesn't have a paintComponent() method, which is what you want, because paint() handles things like double buffering,...
You're missing a few things. You need to call super's paintComponent() in paintComponent() before you do anything else. That handles painting the background, etc. Then you need to set the color of...