XRadioButton rad2 = (XRadioButton)findComponent( "radio2" );
XRadioButton rad3 = (XRadioButton)findComponent( "radio3" );
XRadioButton rad4 = (XRadioButton)findComponent( "radio4" );
XRadioButton rad5 = (XRadioButton)findComponent( "radio5" );
XRadioButton rad6 = (XRadioButton)findComponent( "radio6" );
XLabel rad1_txt = (XLabel)findComponent( "radio1_txt" );
XLabel rad2_txt = (XLabel)findComponent( "radio2_txt" );
XLabel rad3_txt = (XLabel)findComponent( "radio3_txt" );
XLabel rad4_txt = (XLabel)findComponent( "radio4_txt" );
XLabel rad5_txt = (XLabel)findComponent( "radio5_txt" );
XLabel rad6_txt = (XLabel)findComponent( "radio6_txt" );
XLabel ch1_txt = (XLabel)findComponent( "check1_txt" );
XLabel ch2_txt = (XLabel)findComponent( "check2_txt" );
XLabel ch3_txt = (XLabel)findComponent( "check3_txt" );
XCheckbox ch1 = (XCheckbox)findComponent( "check1" );
XCheckbox ch2 = (XCheckbox)findComponent( "check2" );
XCheckbox ch3 = (XCheckbox)findComponent( "check3" );
if ( check1.isSelected() ) {
one.setEnabled( false );
two.setEnabled( false );
three.setEnabled( false );
rad1.setEnabled( false );
rad2.setEnabled( false );
rad3.setEnabled( false );
rad4.setEnabled( false );
rad5.setEnabled( false );
rad6.setEnabled( false );
ch1.setEnabled( false );
ch2.setEnabled( false );
ch3.setEnabled( false );
rad1_txt.setFontColor( "#DDDDDD" );
rad2_txt.setFontColor( "#DDDDDD" );
rad3_txt.setFontColor( "#DDDDDD" );
rad4_txt.setFontColor( "#DDDDDD" );
rad5_txt.setFontColor( "#DDDDDD" );
rad6_txt.setFontColor( "#DDDDDD" );
ch1_txt.setFontColor( "#DDDDDD" );
ch2_txt.setFontColor( "#DDDDDD" );
ch3_txt.setFontColor( "#DDDDDD" );
} else {
one.setEnabled( true );
two.setEnabled( true );
three.setEnabled( true );
rad1.setEnabled( true );
rad2.setEnabled( true );
rad3.setEnabled( true );
rad4.setEnabled( true );
rad5.setEnabled( true );
rad6.setEnabled( true );
ch1.setEnabled( true );
ch2.setEnabled( true );
ch3.setEnabled( true );
rad1_txt.setFontColor( "" );
rad2_txt.setFontColor( "" );
rad3_txt.setFontColor( "" );
rad4_txt.setFontColor( "" );
rad5_txt.setFontColor( "" );
rad6_txt.setFontColor( "" );
ch1_txt.setFontColor( "" );
ch2_txt.setFontColor( "" );
ch3_txt.setFontColor( "" );
}
}