Package javax.swing

Examples of javax.swing.JMenuItem.addPropertyChangeListener()


      newMenu.add(addTopic);
      newMenu.add(addDurableTopic) ;
      // newMenu.add(new JMenuItem(ActionRegistry.getAction(CreateNewJDBCAction.class))) ;
      newMenu.add(addStore);

      newWatch.addPropertyChangeListener("enabled", new PropertyChangeListener()
      {
         public void propertyChange(PropertyChangeEvent evt)
         {
            watchMenu.setEnabled((Boolean) evt.getNewValue());
         }
View Full Code Here


            if (c instanceof JMenuItem) {
                JMenuItem item = (JMenuItem) c;
                if (isIgnored(item)) {
                    continue;
                }
                item.addPropertyChangeListener("enabled", listener);
                if (item instanceof JMenu) {
                    register((JMenu) item);
                    MenuDisabler.install((JMenu) item);
                }
            }
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.