Package javax.swing

Examples of javax.swing.DefaultButtonModel.addItemListener()


  public void test(TestHarness harness)
  {
    DefaultButtonModel m = new DefaultButtonModel();
    m.addActionListener(this);
    m.addChangeListener(this);
    m.addItemListener(this);
    m.setSelected(true);
    harness.check(m.isSelected(), true);
    harness.check(lastChangeEvent.getSource(), m);
    harness.check(lastActionEvent, null);
    harness.check(lastItemEvent.getSource(), m);
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.