Searched refs:popupMenu (Results 1 - 19 of 19) sorted by relevance

/openjdk7/jdk/test/javax/swing/JPopupMenu/6675802/
H A Dbug6675802.java38 final JPopupMenu popupMenu = new JPopupMenu();
39 popupMenu.add(new JMenuItem("Click"));
40 popupMenu.show(null, 0, 0);
/openjdk7/jdk/test/javax/swing/JPopupMenu/6691503/
H A Dbug6691503.java40 private JPopupMenu popupMenu; field in class:bug6691503
59 popupMenu = new JPopupMenu();
61 popupMenu.add(click);
69 popupMenu.show(frame, 0, 0);
71 (popupMenu.getParent().getParent().getParent().getParent());
75 popupMenu.setVisible(false);
84 popupMenu.show(frame, 0, 0);
86 (popupMenu.getParent().getParent().getParent().getParent());
90 popupMenu.setVisible(false);
/openjdk7/jdk/src/share/classes/javax/swing/plaf/basic/
H A DDefaultMenuLayout.java50 JPopupMenu popupMenu = (JPopupMenu) target;
51 sun.swing.MenuItemLayoutHelper.clearUsedClientProperties(popupMenu);
52 if (popupMenu.getComponentCount() == 0) {
H A DBasicPopupMenuUI.java69 protected JPopupMenu popupMenu = null; field in class:BasicPopupMenuUI
89 popupMenu = (JPopupMenu) c;
97 if (popupMenu.getLayout() == null ||
98 popupMenu.getLayout() instanceof UIResource)
99 popupMenu.setLayout(new DefaultMenuLayout(popupMenu, BoxLayout.Y_AXIS));
101 LookAndFeel.installProperty(popupMenu, "opaque", Boolean.TRUE);
102 LookAndFeel.installBorder(popupMenu, "PopupMenu.border");
103 LookAndFeel.installColorsAndFont(popupMenu,
113 popupMenu
[all...]
H A DBasicMenuUI.java611 JPopupMenu popupMenu = ((JMenu)menuItem).getPopupMenu();
613 newList.add(popupMenu);
614 MenuElement subs[] = popupMenu.getSubElements();
/openjdk7/jdk/src/share/classes/javax/swing/plaf/synth/
H A DSynthPopupMenuUI.java63 if (popupMenu.getLayout() == null ||
64 popupMenu.getLayout() instanceof UIResource) {
65 popupMenu.setLayout(new SynthMenuLayout(popupMenu, BoxLayout.Y_AXIS));
67 updateStyle(popupMenu);
89 popupMenu.addPropertyChangeListener(this);
97 SynthContext context = getContext(popupMenu, ENABLED);
103 if (popupMenu.getLayout() instanceof UIResource) {
104 popupMenu.setLayout(null);
114 popupMenu
[all...]
H A DSynthMenuLayout.java46 JPopupMenu popupMenu = (JPopupMenu) target;
47 popupMenu.putClientProperty(
/openjdk7/jdk/test/javax/swing/JPopupMenu/7156657/
H A Dbug7156657.java43 private static JPopupMenu popupMenu; field in class:bug7156657
64 popupMenu = new JPopupMenu();
65 popupMenu.setOpaque(false);
66 popupMenu.add(new TransparentMenuItem("1111"));
67 popupMenu.add(new TransparentMenuItem("2222"));
68 popupMenu.add(new TransparentMenuItem("3333"));
89 popupMenu.show(frame, 0, 0);
98 return popupMenu.getBounds();
122 popupMenu.setVisible(false);
/openjdk7/jdk/src/macosx/classes/sun/lwawt/
H A DLWChoicePeer.java169 JPopupMenu popupMenu = getPopupMenu();
170 if (popupMenu != null) {
171 if (popupMenu.getInvoker() != LWChoicePeer.this.getTarget()) {
172 popupMenu.setVisible(false);
173 popupMenu.show(LWChoicePeer.this.getTarget(), 0, 0);
/openjdk7/jdk/src/share/classes/javax/swing/
H A DJMenu.java123 private JPopupMenu popupMenu; field in class:JMenu
225 if ( popupMenu != null )
227 popupMenu.setUI((PopupMenuUI)UIManager.getUI(popupMenu));
322 return popupMenu.isVisible();
346 // Set location of popupMenu (pulldown or pullright)
543 if (popupMenu == null) {
545 this.popupMenu = new JPopupMenu();
546 popupMenu.setInvoker(this);
547 popupListener = createWinListener(popupMenu);
1162 JPopupMenu popupMenu; field in class:JMenu.WinListener
[all...]
H A DJComponent.java322 private JPopupMenu popupMenu; field in class:JComponent
532 JPopupMenu oldPopup = this.popupMenu;
533 this.popupMenu = popup;
552 return popupMenu;
555 if(popupMenu == null) {
572 return popupMenu;
/openjdk7/jdk/src/macosx/classes/com/apple/laf/
H A DAquaPopupMenuUI.java59 final Rectangle popupBounds = popupMenu.getBounds(); // NB: origin is still at 0,0
81 final Component invoker = popupMenu.getInvoker();
88 popupBounds.setLocation(popupMenu.getLocationOnScreen());
98 g2d.setColor(popupMenu.getBackground());
/openjdk7/jdk/test/javax/swing/JPopupMenu/6800513/
H A Dbug6800513.java47 private static JPopupMenu popupMenu; field in class:bug6800513
70 Popup popup = (Popup) getPopup.get(popupMenu);
86 popupMenu = null;
115 popupMenu = (JPopupMenu) evt.getSource();
/openjdk7/jdk/src/share/classes/java/awt/
H A DPopupMenu.java55 public boolean isTrayIconPopup(PopupMenu popupMenu) {
56 return popupMenu.isTrayIconPopup;
/openjdk7/jdk/src/windows/native/sun/windows/
H A Dawt_PopupMenu.cpp74 AwtPopupMenu* popupMenu = NULL; local
84 popupMenu = new AwtPopupMenu();
95 popupMenu->SetHMenu(hMenu);
97 popupMenu->LinkObjects(env, self);
98 popupMenu->SetParent(parent);
106 return popupMenu;
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/windows/
H A DWindowsPopupMenuUI.java84 * @param popupMenu JPopupMenu requesting Popup
90 public Popup getPopup(JPopupMenu popupMenu, int x, int y) { argument
92 return popupFactory.getPopup(popupMenu.getInvoker(), popupMenu, x, y);
/openjdk7/jdk/src/share/classes/sun/tools/jconsole/
H A DPlotter.java108 private JPopupMenu popupMenu; field in class:Plotter
232 if (popupMenu != null) {
246 if (popupMenu == null) {
247 popupMenu = new JPopupMenu(Messages.CHART_COLON);
250 popupMenu.add(timeRangeMenu);
263 popupMenu.addSeparator();
268 popupMenu.add(saveAsMI);
270 return popupMenu;
/openjdk7/jdk/src/share/classes/sun/awt/
H A DAWTAccessor.java496 boolean isTrayIconPopup(PopupMenu popupMenu); argument
/openjdk7/jdk/src/share/classes/sun/swing/
H A DFilePane.java1766 JPopupMenu popupMenu = getFileChooser().getComponentPopupMenu();
1767 if (popupMenu != null) {
1768 return popupMenu;

Completed in 2420 milliseconds