| new JRadioButton ( object_string, object_icon, boolean_checked ) | ใช้สร้าง object jradiobutton โดยมีการกำหนด ข้อความและ icon ให้กับ object ด้วย |
|---|
method:new JRadioButton ( object_string, object_icon, boolean_checked );
return type:JRadioButton
content:ใช้สร้าง object jradiobutton โดยมีการกำหนด ข้อความและ icon ให้กับ object ด้วย และกำหนดด้วยว่า object นี้ถูกเลือกแล้วหรือไม่
example:String radio_text_label = new String ( "man" ); ImageIcon icon = new ImageIcon ( "C:/man.gif" ); JRadioButton radio_button = new JRadioButton ( radio_text_label, icon, true );