| insertItemAt() | ใช้เพิ่มข้อมูล เข้าไปใน object JComboBox ในตำแหน่งที่กำหนด |
|---|
method:insertItemAt ( object, int_index );
return type:void
content:ใช้เพิ่มข้อมูล เข้าไปใน object JComboBox ในตำแหน่งที่กำหนด
example:Vector vector = new Vector (); vector.addElement ( "bamboo" ); vector.addElement ( "code" ); JComboBox combo_box = new JComboBox ( vector ); combo_box.insertItemAt ( "lab", 1 );