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