Search:

Type: Posts; User: copeg

Search: Search took 0.11 seconds.

  1. Replies
    6
    Views
    2,289

    Re: Button does not change Background

    But how is it actually changing the color? The code sets the value of a local variable color, but nothing is actually done with that local variable.
  2. Replies
    6
    Views
    2,289

    Re: Button does not change Background

    And how does this relate to the color that is defined in the actionPerformed method?
  3. Replies
    6
    Views
    2,289

    Re: Button does not change Background

    I have moved your post to a more appropriate forum...



    Color color = getBackground();
    if(event.getSource()== day)
    color = Color.YELLOW;
    else if (event.getSource()== night)...
Results 1 to 3 of 3