Page 884 - 3-2
P. 884

static String room;
                    static int num;
                    static int addr;


                    /**
                     * Launch the application.
                     */
                    public static void main(String[] args) {
                            EventQueue.invokeLater(new Runnable() {
                                    public void run() {
                                            try {
                                                    Select frame = new Select();
                                                    frame.setVisible(true);
                                            } catch (Exception e) {
                                                    e.printStackTrace();
                                            }
                                    }
                            });
                    }


                     public static void set(){
                            jframe.setVisible(true);
                            jframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                            jframe.setBounds(100, 100, 500, 200);
                            jframe.setBounds(100, 100, 450, 100);
                            contentPane = new JPanel();
                            contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
                            jframe.setContentPane(contentPane);
                            contentPane.setLayout(new FlowLayout(FlowLayout.CENTER, 5, 5));
                            /*
                            textField = new JTextField();
                            contentPane.add(textField);
                            textField.setColumns(10);
                            */


                            JComboBox comboBox = new JComboBox();
                            contentPane.add(comboBox);
                            comboBox.addItem("");
                            comboBox.addItem(301);
                            comboBox.addItem(302);
                            comboBox.addItem(201);
                            comboBox.addItem(202);
                            comboBox.addItem(101);
                            comboBox.addItem(102);
                            comboBox.addItemListener(new ItemListener() {


                                                         - 884 -
   879   880   881   882   883   884   885   886   887   888   889