Results 1 to 5 of 5
  1. #1
    ryogananda is offline Member
    Join Date
    Mar 2009
    Posts
    3
    Rep Power
    0

    Default How to change the default background color of a DISABLED JButton

    Hi...

    Pl help me with the code to change the default background color of disabled JButton in a JApplet.....

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    If you're only wanting to do this for one button, then simply change the background of the button via its property. If however you mean to change this on all buttons you'll likely need to use look and feel to do this.

  3. #3
    ryogananda is offline Member
    Join Date
    Mar 2009
    Posts
    3
    Rep Power
    0

    Default

    I need to change it for the whole applet which includes more than 60 buttons... How to change the look and feel to a custom color

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

  5. #5
    ryogananda is offline Member
    Join Date
    Mar 2009
    Posts
    3
    Rep Power
    0

Similar Threads

  1. my code doesn't change background color
    By javanoobita in forum New To Java
    Replies: 5
    Last Post: 02-22-2009, 04:30 AM
  2. Text color in disabled componentes
    By saul_2110 in forum AWT / Swing
    Replies: 8
    Last Post: 12-13-2008, 05:37 AM
  3. Disabled JButton font color
    By p900128 in forum Advanced Java
    Replies: 1
    Last Post: 07-24-2008, 08:16 AM
  4. JButton onClick change color background
    By behrk2 in forum AWT / Swing
    Replies: 6
    Last Post: 07-09-2008, 04:54 PM
  5. How to change the foreground color of a disabled control
    By arunkumarsimhadri in forum New To Java
    Replies: 0
    Last Post: 07-09-2008, 04:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •