Search:

Type: Posts; User: ice

Search: Search took 0.11 seconds.

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

    Hi guys
    Thank you all, I just solved this problem. hehe...
    :-bd
  2. Re: How to change the background colour by clicking buttons?

    Hi Kevinworkman

    Thanks for the advice, yes I need the help if you can give some. My whole code is asp below, it doesn't compile after I added " getContentPane" into the method "public class...
  3. Re: How to change the background colour by clicking buttons?

    Thanks db
    I have added getContentPane(). in front of setBackground(color) asp below code, then ran it, but got a compiling error:

    Exception in thread "main" java.lang.IllegalArgumentException:...
  4. Re: How to change the background colour by clicking buttons?

    Hi copeg

    I got a problem that I when I clicked the buttons, the colours of the background is not changed accordingly as it suposed to be, db suggest the colour is set on the frame which is hidden...
  5. Re: How to change the background colour by clicking buttons?

    Hi db
    Thank you for your suggestion, it makes great sense, I guess below part of code caused the colour to be set on the frame instead of the contenPanel, am I right? But how exactly do I modify it?...
  6. How to change the background colour by clicking buttons?

    Hi guys

    Below code mean to change the background colour by clicking the redButton or blueButton, but the code doesn't work, (only can show the frame and two buttons), does any anyone know why?
    ...
Results 1 to 6 of 6