Re: Color of Disabled Checkboxes

From: Todd Corley (todd.corley_at_rulespower.com)
Date: 12/15/03


Date: 15 Dec 2003 08:00:39 -0800

dottavio@ised.it (Antonio) wrote in message news:<fb35ea96.0312100329.7147c03@posting.google.com>...
> Good Morning,
> for my application I need to set the disabled color of the checkboxes
> to blue,
> how can I do this ???
> I know for the combo there is
>
> UIManager.put("ComboBox.disabledForeground", new Color(0,0,255));
>
> but seems there is nothing of similar for the checkbox, maybe SUN
> doesn't think to this ??? Can you help me to ha ve a blue disabled
> checkbox ???
>
> Thanks
>
> Ing. Antonio D'Ottavio
Not simple, but...

The CheckBox check is an Icon.

//Metal UIDefault key
CheckBox.icon

If it is really important to you, you can change the default to
something you create.
Look in the IconFactory for the look and feel you are using.
Take the code for CheckBoxIcon and modify it to suit your needs.
Either set the default icon in the look and feel when you start your
client or
individually set the icon for each check box you create.



Relevant Pages

  • Re: Color of Disabled Checkboxes
    ... Antonio wrote: ... > for my application I need to set the disabled color of the checkboxes ... > but seems there is nothing of similar for the checkbox, ... Kind regards, ...
    (comp.lang.java.gui)
  • Re: Color of Disabled Checkboxes
    ... use setBackgroundin its parent Componemt. ... > for my application I need to set the disabled color of the checkboxes ... > but seems there is nothing of similar for the checkbox, maybe SUN ...
    (comp.lang.java)
  • Re: Ovine tonsorialities, or how to run Classic apps under Leopard
    ... Use Resedit, Get File/Folder info. ... Open each of them and uncheck the "Invisible" Finder Flag checkbox. ... Did you see the message about Rebuilding the Desktop? ... and your files still display the wrong icon after the rebuild is ...
    (uk.comp.sys.mac)
  • Network in the notification area
    ... I don't know that SP1 is the culprit but what I'm experiencing is that checkbox is greyed out. ... why am I not allowed to check it and put the network icon back in my notification area? ...
    (microsoft.public.windows.vista.general)
  • Re: Network in the notification area
    ... Prior to installing SP1, I was able to access that ... experiencing is that checkbox is greyed out. ... why am I not allowed to check it and put the network icon ...
    (microsoft.public.windows.vista.general)