Package javax.swing.plaf.basic

Examples of javax.swing.plaf.basic.BasicComboBoxEditor.addActionListener()


    BasicComboBoxEditor e = new BasicComboBoxEditor();
    JTextField tf = (JTextField) e.getEditorComponent();
    ActionListener[] listeners = tf.getActionListeners();
    harness.check(listeners.length, 0);
   
    e.addActionListener(this);
    listeners = tf.getActionListeners();
    harness.check(listeners.length, 1);
    harness.check(listeners[0], this);
   
    e.removeActionListener(this);
View Full Code Here


    BasicComboBoxEditor e = new BasicComboBoxEditor();
    JTextField tf = (JTextField) e.getEditorComponent();
    ActionListener[] listeners = tf.getActionListeners();
    harness.check(listeners.length, 0);
   
    e.addActionListener(this);
    listeners = tf.getActionListeners();
    harness.check(listeners.length, 1);
    harness.check(listeners[0], this);
   
    // try null
View Full Code Here

    listeners = tf.getActionListeners();
    harness.check(listeners.length, 1);
    harness.check(listeners[0], this);
   
    // try null
    e.addActionListener(null);
    listeners = tf.getActionListeners();
    harness.check(listeners.length, 1);   
  }
 
  public void actionPerformed(ActionEvent e)
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.