1. Buat Project (Java Application), name Project JComboBox
2. Tambahkan Package , name jcombobox
3. New -> JFrame Form, name FrmCombo
- package jcombobox;
- public class JFrmComboBox extends javax.swing.JFrame {
- /**
- * Creates new form JFrmComboBox
- */
- public JFrmComboBox() {
- initComponents();
- jComboBox1.removeAllItems();;
- jComboBox1.addItem("Rekayasa Perangkat Lunak");
- jComboBox1.addItem("Multimedia");
- jComboBox1.addItem("Teknik Komputer dan Jaringan");
- }
- }
Run, good luck
No comments:
Post a Comment