Package javax.swing.event

Examples of javax.swing.event.PopupMenuListener


        toolGroupsPanel.add(toolGroupsTableScroll, "0,0,0,5,FULL,FULL");
        toolGroupsPanel.add(showGroup, "2,1,c,c");
        toolGroupsPanel.add(hideGroup, "2,3,c,c");

        groupsPopupMenu = new JPopupMenu("Groups");
    groupsPopupMenu.addPopupMenuListener(new PopupMenuListener() {
            public void popupMenuWillBecomeVisible(PopupMenuEvent e) {
                groupsPopupMenu.removeAll();
                for (ToolWindowGroup toolWindowGroup : toolWindowManager.getToolWindowGroups()) {
                    JMenuItem item = new JMenuItem(toolWindowGroup.getName());
                    item.setActionCommand(toolWindowGroup.getName());
View Full Code Here


        VisualTextFieldAdapter.this.visualComponent.paint(remote.getGraphics());
        if (popup == null)
        {
            super.showVirtualKeyboard();

            popup.addPopupMenuListener(new PopupMenuListener() {

                public void popupMenuCanceled(PopupMenuEvent e)
                {// no action
                }
View Full Code Here

            }
        });
        indexColumn.setCellEditor(new DefaultCellEditor(indexs));

        toolsPopupMenu = new JPopupMenu("Tools");
        toolsPopupMenu.addPopupMenuListener(new PopupMenuListener() {
            public void popupMenuWillBecomeVisible(PopupMenuEvent e) {
                toolsPopupMenu.removeAll();
                for (ToolWindow toolWindow : toolWindowManager.getToolWindows()) {
                    JMenuItem item = new JMenuItem(toolWindow.getTitle());
                    item.setActionCommand((String) toolWindow.getId());
View Full Code Here

        toolGroupsPanel.add(toolGroupsTableScroll, "0,0,0,5,FULL,FULL");
        toolGroupsPanel.add(showGroup, "2,1,c,c");
        toolGroupsPanel.add(hideGroup, "2,3,c,c");

        groupsPopupMenu = new JPopupMenu("Groups");
    groupsPopupMenu.addPopupMenuListener(new PopupMenuListener() {
            public void popupMenuWillBecomeVisible(PopupMenuEvent e) {
                groupsPopupMenu.removeAll();
                for (ToolWindowGroup toolWindowGroup : toolWindowManager.getToolWindowGroups()) {
                    JMenuItem item = new JMenuItem(toolWindowGroup.getName());
                    item.setActionCommand(toolWindowGroup.getName());
View Full Code Here

            }
        });
        indexColumn.setCellEditor(new DefaultCellEditor(indexs));

        toolsPopupMenu = new JPopupMenu("Tools");
        toolsPopupMenu.addPopupMenuListener(new PopupMenuListener() {
            public void popupMenuWillBecomeVisible(PopupMenuEvent e) {
                toolsPopupMenu.removeAll();
                for (ToolWindow toolWindow : toolWindowManager.getToolWindows()) {
                    JMenuItem item = new JMenuItem(toolWindow.getTitle());
                    item.setActionCommand(toolWindow.getId());
View Full Code Here

        toolGroupsPanel.add(toolGroupsTableScroll, "0,0,0,5,FULL,FULL");
        toolGroupsPanel.add(showGroup, "2,1,c,c");
        toolGroupsPanel.add(hideGroup, "2,3,c,c");

        groupsPopupMenu = new JPopupMenu("Groups");
    groupsPopupMenu.addPopupMenuListener(new PopupMenuListener() {
            public void popupMenuWillBecomeVisible(PopupMenuEvent e) {
                groupsPopupMenu.removeAll();
                for (ToolWindowGroup toolWindowGroup : toolWindowManager.getToolWindowGroups()) {
                    JMenuItem item = new JMenuItem(toolWindowGroup.getName());
                    item.setActionCommand(toolWindowGroup.getName());
View Full Code Here

     */
    public void addJtabViewsPopupMenu() {
        JPopupMenuHandler jpmh = new JPopupMenuHandler(this);
        JPopupMenu jp = new JPopupMenu();
        getJtabViews().setComponentPopupMenu(jp);
        jp.addPopupMenuListener(new PopupMenuListener(){
            public void popupMenuWillBecomeInvisible(PopupMenuEvent e){
                _jtabpopmenupoint = getJtabViews().getComponentPopupMenu().getLocationOnScreen();
            }
            public void popupMenuCanceled(PopupMenuEvent e){
                _jtabpopmenupoint = null;
View Full Code Here

     */
    public void addJtabViewsPopupMenu() {
        JPopupMenuHandler jpmh = new JPopupMenuHandler(this);
        JPopupMenu jp = new JPopupMenu();
        getJtabViews().setComponentPopupMenu(jp);
        jp.addPopupMenuListener(new PopupMenuListener(){
            public void popupMenuWillBecomeInvisible(PopupMenuEvent e){
            }
            public void popupMenuCanceled(PopupMenuEvent e){
                _jtabpopmenupoint = null;
            }
View Full Code Here

        MenuUtilities.cleanPopupLayoutMetrics(popupMenu);
      }
    };
    this.popupMenu.addContainerListener(this.substanceContainerListener);

    this.substancePopupMenuListener = new PopupMenuListener() {
      @Override
      public void popupMenuWillBecomeVisible(PopupMenuEvent e) {
      }

      @Override
View Full Code Here

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

      inputPopup.addPopupMenuListener( new PopupMenuListener()
      {

        public void popupMenuCanceled( PopupMenuEvent e )
        {
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.