Package javax.swing

Examples of javax.swing.JMenu.addMenuListener()


        propertyChangeListener = createPropertyChangeListener(menuItem);
        menu.addPropertyChangeListener(propertyChangeListener);
        changeListener = createChangeListener(menuItem);
        menu.addChangeListener(changeListener);
        menuListener = createMenuListener(menu);
        menu.addMenuListener(menuListener);
    }

    protected void uninstallListeners() {
        if (menuItem == null) {
            return;
View Full Code Here


        // Insert
        JMenu insert = new JMenu();
        insert.setName("insertMenu");
        insert.setText("挿入");
        if (chart != null) {
            insert.addMenuListener(chart);
        }
       
        JMenu insertDisease = new JMenu();
        insertDisease.setName("insertDisease");
        insertDisease.setAction(actionMap.get("insertDisease"));
View Full Code Here

        // Text
        JMenu text = new JMenu();
        text.setName("textMenu");
        text.setText("テキスト");
        if (chart != null) {
            text.addMenuListener(chart);
        }
       
        //// size ////
        JMenu size = new JMenu();
        size.setName("size");
View Full Code Here

                // update the menu items in the menu just before it is displayed
                JMenu reflectorMenu = makeNewMenu(null);
                reflectorMenu.setAction(getAddReflectorGemDropDownAction());
                reflectorMenu.setToolTipText(null);
                reflectorMenu.setIcon(null);
                reflectorMenu.addMenuListener(new MenuListener() {
                   
                    public void menuSelected(MenuEvent evt) {
                        JMenu menu = (JMenu)evt.getSource();
                        prepareAddReflectorPopup(menu.getPopupMenu());
                    }
View Full Code Here

            }
//pns$
        });
       
        // windowMenu にメニューリスナを設定しこのクラスで処理をする
        windowMenu.addMenuListener(ret);
        return ret;
    }
   
  public static ArrayList<WindowSupport> getAllWindows() {
        return allWindows;
View Full Code Here

        propertyChangeListener = createPropertyChangeListener(menuItem);
        menu.addPropertyChangeListener(propertyChangeListener);
        changeListener = createChangeListener(menuItem);
        menu.addChangeListener(changeListener);
        menuListener = createMenuListener(menu);
        menu.addMenuListener(menuListener);
    }

    protected void uninstallListeners() {
        if (menuItem == null) {
            return;
View Full Code Here

                action.putValue( "InstrumentManagerConnection", connection );

                JMenu menu = new LargeMenu( action );

                // Set up a Listener to handle the selected event.
                menu.addMenuListener( new MenuListener()
                {
                    public void menuSelected( MenuEvent event )
                    {
                        JMenu menu = (JMenu)event.getSource();
                        Action action = menu.getAction();
View Full Code Here

                    action.putValue( "InstrumentableData", instrumentable );

                    JMenu menu = new LargeMenu( action );

                    // Set up a Listener to handle the selected event.
                    menu.addMenuListener( new MenuListener()
                    {
                        public void menuSelected( MenuEvent event )
                        {
                            JMenu menu = (JMenu)event.getSource();
                            Action action = menu.getAction();
View Full Code Here

                action.putValue( "InstrumentableData", child );

                JMenu menu = new LargeMenu( action );

                // Set up a Listener to handle the selected event.
                menu.addMenuListener( new MenuListener()
                {
                    public void menuSelected( MenuEvent event )
                    {
                        JMenu menu = (JMenu)event.getSource();
                        Action action = menu.getAction();
View Full Code Here

                action.putValue( "InstrumentData", instrument );

                JMenu menu = new LargeMenu( action );

                // Set up a Listener to handle the selected event.
                menu.addMenuListener( new MenuListener()
                {
                    public void menuSelected( MenuEvent event )
                    {
                        JMenu menu = (JMenu)event.getSource();
                        Action action = menu.getAction();
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.