---code---
if (readOnly) {
//cb.disable();
cb.setEnabled(false);
}
when lower versions of jdk is used (lower than 1.4), the disable() method is working properly (meaning the checkbox is graying out and becoming non-clickable), but when higher versions of jdk (1.6) is used to open the applet, the checkbox only becomes non-clickable. It is no longer becoming gray. I substituted the disable() method with setEnabled(false) but still it is not grayed out. Anybody knows how to gray out checkbox in jdk 1.6?