Package javax.swing

Examples of javax.swing.JPopupMenu.show()


            menuItem.addActionListener(popupListener);
            popup.add(menuItem);
        }

        popup.show(e.getComponent(), e.getX(), e.getY());
    }

    // handles the creation of the command when a popup is triggered
    private class PopupListener implements ActionListener {
View Full Code Here


        public void mouseReleased(MouseEvent ev) {
          if (!retargetMouseEventToNavigationPanelChildren(ev)) {
            if (ev.isPopupTrigger()) {
              JPopupMenu componentPopupMenu = getComponentPopupMenu();
              if (componentPopupMenu != null) {
                componentPopupMenu.show(HomeComponent3D.this, ev.getX(), ev.getY());
              }
            }
          }
        }
View Full Code Here

      });
      popup.add(outputWriterMenuItem);
    }

    JComponent component = (JComponent) e.getSource();
    popup.show(component, 0, component.getHeight());
  }

  protected abstract void configure(AnalysisJobBuilder analysisJobBuilder,
      RowProcessingAnalyzerJobBuilder<? extends RowProcessingAnalyzer<?>> analyzerJobBuilder);
View Full Code Here

            }
          }
        });
        popup.add(addTableItem);

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

        popup.add(databaseDriversMenuItem);
        popup.add(new JSeparator(JSeparator.HORIZONTAL));
        popup.add(compositeMenuItem);
        popup.setBorder(WidgetUtils.BORDER_THIN);

        popup.show(moreDatastoreTypesButton, 0, moreDatastoreTypesButton.getHeight());
      }
    });

    panel.add(Box.createHorizontalStrut(10));
    panel.add(moreDatastoreTypesButton);
View Full Code Here

        popup.setLabel(column.getName());
        popup.add(toggleColumnItem);
        popup.add(createDictionaryItem);
        popup.add(quickAnalysisMenuItem);
        popup.add(previewMenuItem);
        popup.show((Component) e.getSource(), e.getX(), e.getY());
      }
    }
  }

  /**
 
View Full Code Here

        });

        final JPopupMenu popup = new JPopupMenu();
        popup.add(menu);
        popup.add(localJarFilesMenuItem);
        popup.show(addDriverButton, 0, addDriverButton.getHeight());
      }
    });
    toolBar.add(addDriverButton);

    final DCTable table = getDatabaseDriverTable();
View Full Code Here

            "images/actions/preview_data.png");
        previewMenuItem.addActionListener(new PreviewSourceDataActionListener(_schemaTree.getWindowContext(),
            _analysisJobBuilder.getDataContextProvider(), columns));
        popup.add(previewMenuItem);

        popup.show((Component) e.getSource(), e.getX(), e.getY());
      }
    }
  }

  /**
 
View Full Code Here

        return menuItem;
      }
    };

    Component source = (Component) e.getSource();
    popup.show(source, 0, source.getHeight());

  }
}
View Full Code Here

    });

    JPopupMenu popup = new JPopupMenu();
    popup.add(renameMenuItem);
    popup.add(removeMenuItem);
    popup.show(parentComponent, x, y);
  }

  protected abstract void onNameChanged();

  protected abstract void onRemoved();
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.