Jcombox选择改变触发的事件是哪个阿?急等

解决方案 »

  1.   

    void addItemListener(ItemListener aListener)
      

  2.   

    comboBox.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    System.out.println("已选择");
    }
    });
      

  3.   

    void addItemListener(ItemListener aListener)...
    aListener.itemStateChanged(ItemEvent e)
    ...
      

  4.   

    comboBox.addActionListener(new ItemListener() {
    public void itemStateChanged(ActionEvent e) {
         
          ......}
    });
      

  5.   

    comboBox.addActionListener(new ItemListener() {
    public void itemStateChanged(ActionEvent e) {
         
          ......}
    });
    malligator怎么搞的??