Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.11 seconds.

  1. Replies
    8
    Views
    1,674

    Re: Problem with setBackground color

    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,...
  2. Replies
    8
    Views
    1,674

    Re: Problem with setBackground color

    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...
Results 1 to 2 of 2