Package javax.swing.event

Examples of javax.swing.event.PopupMenuListener


                        menu.showBelowMiddle ( childs );
                    }
                } );
                contentPanel.add ( childs );

                menu.addPopupMenuListener ( new PopupMenuListener ()
                {
                    @Override
                    public void popupMenuWillBecomeVisible ( final PopupMenuEvent e )
                    {
                        //
View Full Code Here


                    SwingUtils.applyOrientation ( rootsMenu );
                    rootsMenu.showBelowMiddle ( rootsArrowButton );
                }
            } );

            rootsMenu.addPopupMenuListener ( new PopupMenuListener ()
            {
                @Override
                public void popupMenuWillBecomeVisible ( final PopupMenuEvent e )
                {
View Full Code Here

            protected void configurePopup ()
            {
                super.configurePopup ();

                // Button updater
                addPopupMenuListener ( new PopupMenuListener ()
                {
                    @Override
                    public void popupMenuWillBecomeVisible ( final PopupMenuEvent e )
                    {
                        arrow.setIcon ( collapseIcon );
View Full Code Here

        assertionListPopup = new JPopupMenu();
        addAssertionAction = new AddAssertionAction(assertable);
        assertionListPopup.add(addAssertionAction);

        assertionListPopup.addPopupMenuListener(new PopupMenuListener() {

            public void popupMenuWillBecomeVisible(PopupMenuEvent e) {
                while (assertionListPopup.getComponentCount() > 1) {
                    assertionListPopup.remove(1);
                }
View Full Code Here

                showPopup(e);
            }
        }

        private void showToolTipLessPopupMenu(JPopupMenu pm, int x, int y){
            pm.addPopupMenuListener(new PopupMenuListener() {

                @Override
                public void popupMenuCanceled(PopupMenuEvent e) {
                    ToolTipManager.sharedInstance().setEnabled(true);
                }
View Full Code Here

    public RecentItemsListener(JMenu recentWorkspacesMenu2, JMenu recentProjectsMenu2, JMenu recentEditorsMenu2) {
        recentWorkspacesMenu = recentWorkspacesMenu2;
        recentProjectsMenu = recentProjectsMenu2;
        recentEditorsMenu = recentEditorsMenu2;
        recentEditorsMenu.add(EMPTYMARKER).setEnabled(false);
        recentEditorsMenu.getPopupMenu().addPopupMenuListener(new PopupMenuListener() {

            public void popupMenuCanceled(PopupMenuEvent e) {
            }

            public void popupMenuWillBecomeInvisible(PopupMenuEvent e) {
View Full Code Here

        multySecurityScanPopUp = new JPopupMenu();
        enableSecurityScansAction = new EnableSecurityScans();
        disableSecurityScansAction = new DisableSecurityScans();
        populateMultySecurityScanPopup(true, true);
        multySecurityScanPopUp.addPopupMenuListener(new PopupMenuListener() {

            @Override
            public void popupMenuWillBecomeVisible(PopupMenuEvent arg0) {
                multypopupvisible = true;
            }
View Full Code Here

            inputPopup.insert(new AddWSTimestampAction(getModelItem()), 4);
            inputPopup.insert(applyMenu = new JMenu("Outgoing WSS"), 5);
            inputPopup.insert(wsaApplyMenu = new JMenu("WS-A headers"), 6);
            inputPopup.insert(new JSeparator(), 7);

            inputPopup.addPopupMenuListener(new PopupMenuListener() {

                public void popupMenuCanceled(PopupMenuEvent e) {

                }
View Full Code Here

            super.buildPopup(inputPopup, editArea);

            inputPopup.insert(applyMenu = new JMenu("Outgoing WSS"), 2);
            inputPopup.insert(wsaApplyMenu = new JMenu("WS-A headers"), 3);

            inputPopup.addPopupMenuListener(new PopupMenuListener() {

                public void popupMenuCanceled(PopupMenuEvent e) {

                }
View Full Code Here

        }
    }

    /** Adds listener that deselects the toggle button, when the popup menu closes. */
    private void addPopupMenuListener(final JPopupMenu pm, final AbstractButton b) {
        pm.addPopupMenuListener(new PopupMenuListener() {
            @Override
            public void popupMenuCanceled(final PopupMenuEvent e) {
                application.invokeLater(new Runnable() {
                    @Override
                    public void run() {
View Full Code Here

TOP

Related Classes of javax.swing.event.PopupMenuListener

Copyright © 2018 www.massapicom. 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.