| setEditable() | ใช้กำหนดว่า จะสามารถให้แก้ไขข้อมูลใน object JComboBox ได้หรือไม่ |
|---|
method:setEditable ( boolean );
return type:void
content:ใช้กำหนดว่า จะสามารถให้แก้ไขข้อมูลใน object JComboBox ได้หรือไม่
example:Vector vector = new Vector (); vector.addElement ( "bamboo" ); vector.addElement ( "labcode" ); JComboBox combo_box = new JComboBox ( vector ); combo_box.setEditable ( false );