Package javax.swing

Examples of javax.swing.JPopupMenu.show()


            setBorder(null);
            addActionListener(new ActionListener() {

                public void actionPerformed(ActionEvent e) {
                    JPopupMenu menu = createPopup();
                    menu.show(HierarchyAddonButton.this, HierarchyAddonButton.this.getWidth() - menu.getPreferredSize().width, HierarchyAddonButton.this.getHeight());
                }
            });
        }

        private JPopupMenu createPopup() {
View Full Code Here


                        }
                    }
                });
                menu.add(new JSeparator());
                menu.add(saveItem);
                menu.show(layoutToolbar, 0, -menu.getPreferredSize().height);
            }
        });
    }

    public void refreshModel(LayoutModel layoutModel) {
View Full Code Here

          Ajde.getDefault().getViewManager().extractAndInsertSignatures(signatures, true);
                }
            });
            popup.add(generatePCD);

            popup.show(e.getComponent(), e.getX(), e.getY());
        }
    }
}
View Full Code Here

          showPopup(e);
        }

        private void showPopup(MouseEvent e) {
          if (e.isPopupTrigger()) {
            popup.show(tblParameters, e.getX(), e.getY());
          }
        }
      });
      lblTableParameterNote = new JLabel("*Note: Right click on the table to bind an existing service");
      lblTableParameterNote.setFont(new Font("Tahoma", Font.ITALIC, 11));
View Full Code Here

      csEditor.handleStopServer();
      break;

    case OPEN:
      JPopupMenu popup = editor.getMode().getToolbarMenu().getPopupMenu();
      popup.show(this, e.getX(), e.getY());
      break;

    case NEW:
      // if (shift) {
        base.handleNew();
View Full Code Here

            setLogLvl(selPath);
          }
        });
        jpopup.add(jmiLogLvl);
      }
      jpopup.show(jp, e.getX()-jsb_horizontal.getValue(), e.getY()-jsb_vertical.getValue());
    /*} else if ( e.getClickCount()==2 & selPath!=null) { // expand selected path
      if (logTree.isExpanded(selPath)) {
        logTree.collapsePath(selPath);
      } else {
        logTree.expandPath(selPath);
View Full Code Here

      reevaluateModelItem.setEnabled(false);
    }           
   
    resultListMenu.add(reevaluateModelItem);
   
    resultListMenu.show(m_history.getList(), x, y);
  }
 
  /**
   * Load a forecaster and add it to the history list
   */
 
View Full Code Here

                        deleteSelectionMI.setVisible(false);
                        deleteAllMI.setVisible(false);
                    }

                    tableMenu.show(e.getComponent(), e.getX(), e.getY());
                } else {
                    tableMenu.setVisible(false);
                    super.mousePressed(e);
                }
            }
View Full Code Here

      private void showPopup(MouseEvent e) {
        if (e.isPopupTrigger()) {
          ListSelectionModel selectionModel = table.getSelectionModel();
          selectionModel.setSelectionInterval(table.rowAtPoint(e.getPoint()), table.rowAtPoint(e.getPoint()));
          ctxMenu.show(e.getComponent(), e.getX(), e.getY());
        }
      }
    });

    setupDND(table);
View Full Code Here

                if (!progressIndicator.isCanceled()) {
                    ActionPopupMenu actionPopupMenu = ActionManager.getInstance().createActionPopupMenu("", actionGroup);
                    final JPopupMenu popupMenu = actionPopupMenu.getComponent();
                    new SimpleLaterInvocator() {
                        public void execute() {
                            popupMenu.show((Component) event.getSource(), event.getX(), event.getY());
                        }
                    }.start();
                }
            }
        }.start();
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.