Netbeans IDE

 

Thai netbeans -เรียนรู้เน็ตบีน - เรียน netbeans

Swing GUI with NetBeans IDE

JComboBox / JList

Thai netbeans - netbeans thai - สอน netbeans -เรียน netbeans - online netbeansThai netbeans - netbeans thai - สอน netbeans -เรียน netbeans - online netbeans
นำ Component ต่างๆ มาวางแล้วทำการแก้ไขดังภาพ

คลิกขวาที่ JCombo box เลือก  Events --> Action --> ActionPerformed  ทำการเขียนโค้ด

  jLabel1.setText("คุณเลือก JComboBox: " + jComboBox1.getSelectedItem().toString());

คลิกขวาที่ JCombo box เลือก  Events --> Mouse --> MouseClicked  ทำการเขียนโค้ด

jLabel1.setText("คุณเลือก JList : " + jList1.getSelectedValue().toString());

Shift+F6 เพื่อทดสอบโปรแกรม


Thai netbeans - netbeans thai - สอน netbeans -เรียน netbeans - online netbeans

        Download This Project Netbeans.