| isSelected() | ใช้ตรวจสอบว่า Object JRadioButton ถูกเลือกอยู่หรือไม่ |
|---|
method:isSelected ();
return type:boolean
content:ใช้ตรวจสอบว่า Object JRadioButton ถูกเลือกอยู่หรือไม่
example:String radio_text_label = new String ( "man" ); JRadioButton radio_button = new JRadioButton ( radio_text_label ); if ( radio_button.isSelected () ) { radio_button.setSelected ( false ); }