Package javax.swing

Examples of javax.swing.JPopupMenu.removeAll()


    _globalPopup.setInvoker(null);
    _globalActions.clear();
    for(Iterator<JPopupMenu> i=_popups.values().iterator(); i.hasNext();)
    {
      JPopupMenu popup = i.next();
      popup.removeAll();
      popup.setInvoker(null);
    }
    _popups.clear();
  }
View Full Code Here


 
  public void setTemplate(Templete template) {
    this.template = template;
   
        JPopupMenu popupMenu = getGraphicalEditorUI().getEditorAreaPopupMenu();
        popupMenu.removeAll();
   
    if (this.template==null) {
        this.featureEditor = null;
        this.featureModelEditor = null;
        this.constraintModelEditor = null;
View Full Code Here

 
  public void setTemplate(Templete template) {
    this.template = template;
   
        JPopupMenu popupMenu = getGraphicalEditorUI().getEditorAreaPopupMenu();
        popupMenu.removeAll();
   
    if (this.template==null) {
        this.featureEditor = null;
        this.featureModelEditor = null;
        this.constraintModelEditor = null;
View Full Code Here

    }//GEN-LAST:event_jButton1ActionPerformed

    private void gKarTable2MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_gKarTable2MouseClicked
        if (evt.isPopupTrigger()) {
            JPopupMenu jPopupMenu3 = new JPopupMenu();
            jPopupMenu3.removeAll();
            JMenuItem jm1 = new JMenuItem();
            jm1.setText("Display Records");
            jm1.addActionListener(new ActionListener(){
                public void actionPerformed(ActionEvent e) {
                    actionShowDataPerformed(e);
View Full Code Here

            public void mouseClicked(MouseEvent e) {
                if (e.isPopupTrigger() || e.getButton() == MouseEvent.BUTTON3) {
                    // TODO only show add if a selected node isn't being
                    // watched, and only show remove if a selected node is being
                    // watched
                    popupMenu.removeAll();
                    popupMenu.add(addNotify);
                    popupMenu.add(removeNotify);
                    popupMenu.show(ZooInspectorTreeViewer.this, e.getX(), e
                            .getY());
                }
View Full Code Here

    if (popupMenu == null) {
      popupMenu =
              new JPopupMenu(set.getAttachedObject() == null ? set.getId() : set
              .getAttachedObject().getLabel());
    } else {
      popupMenu.removeAll();
      popupMenu.setName(set.getAttachedObject() == null ? set.getId() : set
              .getAttachedObject().getLabel());
    }
    for (int i = 0; i < set.getChildCount(); i++) {
      URLTreeNode<IAction> a = (URLTreeNode<IAction>) set.getChildAt(i);
View Full Code Here

            public void mouseClicked(MouseEvent e) {
                if (e.isPopupTrigger() || e.getButton() == MouseEvent.BUTTON3) {
                    // TODO only show add if a selected node isn't being
                    // watched, and only show remove if a selected node is being
                    // watched
                    popupMenu.removeAll();
                    popupMenu.add(addNotify);
                    popupMenu.add(removeNotify);
                    popupMenu.show(ZooInspectorTreeViewer.this, e.getX(), e
                            .getY());
                }
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.