Search:

Type: Posts; User: Darryl.Burke

Search: Search took 0.07 seconds.

  1. Re: How to change the background colour by clicking buttons?

    getContentPane is a method, but you are writing code that treats it as a variable. Go back to the one line of code I posted and see how your code differs from it.

    edit The earlier method call in...
  2. Re: How to change the background colour by clicking buttons?

    frame.getContentPane().setBackground(...)
    db
  3. Re: How to change the background colour by clicking buttons?

    You're setting the background of a JFrame. But the background of a JFrame is covered by its contentPane, which is by default opaque. You should be setting the background of the contentPane.

    Oh,...
Results 1 to 3 of 3