Click to See Complete Forum and Search --> : How do I set the disable color of a component ?


Dileepa Wijay
September 22nd, 1999, 12:40 PM
I have check boxes that are disabled on the screen. Because of the background
I am using the check box text is not clear. How do I disable a check box and
set a different color to it.

I have tried this code but does not work.

mycheckbox.setEnabled(false);
mycheckbox.setForeGroundColor(java.awt.Color.white);