Package javax.swing

Examples of javax.swing.Action.addPropertyChangeListener()


          startButton.setSelected(stopTutorial.isEnabled());
        }
      };

    startTutorial.addPropertyChangeListener(pcl);
    stopTutorial.addPropertyChangeListener(pcl);

    pluginRegistry.addPluginListener(
      new PluginListener() {
        public void pluginStarted(PluginEvent e) {
        }
View Full Code Here


          startButton.setSelected(stopTutorial.isEnabled());
        }
      };

    startTutorial.addPropertyChangeListener(pcl);
    stopTutorial.addPropertyChangeListener(pcl);

    pluginRegistry.addPluginListener(
      new PluginListener() {
        public void pluginStarted(PluginEvent e) {
        }
View Full Code Here

    }
    mi.setActionCommand(astr);
    Action a = getAction(astr);
    if (a != null) {
      mi.addActionListener(a);
      a.addPropertyChangeListener(createActionChangeListener(mi));
      mi.setEnabled(a.isEnabled());
    } else {
      mi.setEnabled(false);
    }
    menuItems.put(cmd, mi);
View Full Code Here

      b.setActionCommand(aname);
      if (a != null) {
         b.addActionListener(a);
         b.setEnabled(a.isEnabled());
         a.addPropertyChangeListener(new ButtonPropertyChangedListener(b));
      } else {
         b.setEnabled(false);
      }
      String tip = comp.getSettings().getLanguageDependentString(depName
                                                                 + TOOLTIP_POSTFIX);
View Full Code Here

      mi.setActionCommand(aname);
      if (a != null) {
         mi.addActionListener(a);
         if (addBCListener) {
            a.addPropertyChangeListener(new ButtonPropertyChangedListener(mi));
         }
         mi.setEnabled(a.isEnabled());
      } else {
         mi.setEnabled(false);
      }
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.