Searched refs:popup (Results 1 - 24 of 24) sorted by relevance

/openjdk7/jdk/src/macosx/native/com/apple/laf/
H A DScreenPopupFactory.m39 jobject popup;
41 popup = JNFCallObjectMethod(env, screenPopupFactory, jm_getPopup, comp, invoker, x, y, 2);
43 return popup;
/openjdk7/jdk/src/share/classes/javax/swing/plaf/
H A DPopupMenuUI.java52 * @param popup JPopupMenu requesting Popup
58 public Popup getPopup(JPopupMenu popup, int x, int y) { argument
61 return popupFactory.getPopup(popup.getInvoker(), popup, x, y);
/openjdk7/jdk/test/javax/swing/JPopupMenu/6694823/
H A Dbug6694823.java27 * @summary Checks that popup menu cannot be partially hidden
41 private static JPopupMenu popup; field in class:bug6694823
75 // Show popup as if from an applet
76 // The popup shouldn't overlap the task bar. It should be shifted up.
86 popup = new JPopupMenu("Menu");
88 popup.add(new JMenuItem("MenuItem"));
91 panel.setComponentPopupMenu(popup);
114 // Place popup over the task bar
116 point.y = frame.getHeight() - popup.getPreferredSize().height + screenInsets.bottom;
117 popup
[all...]
/openjdk7/jdk/src/macosx/classes/com/apple/laf/
H A DScreenPopupFactory.java68 final Popup popup;
70 popup = _getHeavyWeightPopup(comp, invoker, x, y);
72 popup = super.getPopup(comp, invoker, x, y);
75 // Make the popup semi-translucent if it is a heavy weight
78 if (w == null) return popup;
80 if (!(w instanceof RootPaneContainer)) return popup;
102 return popup;
H A DAquaComboBoxUI.java97 if (!popup.isVisible()) return;
99 // sometimes, multiple selection changes can occur while the popup is up,
105 final JList itemList = popup.getList();
184 if (!popup.isVisible()) return;
197 popup.getList().setSelectedIndex(i);
201 popup.getList().clearSelection();
221 if (popup.isVisible()) {
244 * This listener hides the popup when the focus is lost. It also repaints
249 * popup check here. rdar://Problem/3518582
390 // We shouldn't do that. But we need to be able to get the popup fro
[all...]
H A DAquaTabbedPaneUI.java941 final JPopupMenu popup = new JPopupMenu();
945 popup.add(createMenuItem(i));
951 final Dimension popupRect = popup.getPreferredSize();
952 popup.show(tabPane, leftScrollTabRect.x - popupRect.width, leftScrollTabRect.y + 7);
955 popup.show(tabPane, rightScrollTabRect.x + rightScrollTabRect.width, rightScrollTabRect.y + 7);
958 popup.addPopupMenuListener(new PopupMenuListener() {
1078 * 3. When we cannot fit all the tabs we create a tab popup, and then layout the new tabs until
/openjdk7/jdk/src/share/classes/javax/swing/
H A DPopupFactory.java48 * Popup popup = factory.getPopup(owner, contents, x, y);
49 * popup.show();
51 * popup.hide();
73 * Key used to indicate a light weight popup should be used.
170 Popup popup = getPopup(owner, contents, x, y, popupType);
172 if (popup == null) {
174 popup = getPopup(owner, contents, x, y, HEAVY_WEIGHT_POPUP);
176 return popup;
180 * Returns the popup type to use for the specified parameters.
196 // force a heavy weight popup i
399 recycleHeavyWeightPopup(HeavyWeightPopup popup) argument
681 recycleLightWeightPopup(LightWeightPopup popup) argument
838 recycleMediumWeightPopup(MediumWeightPopup popup) argument
[all...]
H A DJPopupMenu.java51 * An implementation of a popup menu -- a small window that pops up
59 * For information and examples of using popup menus, see
111 transient Popup popup; field in class:JPopupMenu
184 * for the popup menu.
276 * description: The selection model for the popup menu
345 // Calculate the screen size that popup should fit
363 // Ensure that popup menu fits the screen
412 * Returns whether popup is allowed to be shown above the task bar.
459 * Removes the component at the specified index from this popup menu.
480 * By default, when a look and feel displays a popup,
1121 isSubPopupMenu(JPopupMenu popup) argument
[all...]
H A DJComponent.java512 * If <code>popup</code> is null, and <code>getInheritsPopupMenu</code>
519 * @param popup - the popup that will be assigned to this component
528 public void setComponentPopupMenu(JPopupMenu popup) { argument
529 if(popup != null) {
533 this.popupMenu = popup;
534 firePropertyChange("componentPopupMenu", oldPopup, popup);
545 * or <code>null</code> if no popup assigned
556 // Search parents for its popup
3048 * Returns the preferred location to display the popup men
[all...]
/openjdk7/jdk/src/share/classes/java/awt/
H A DTrayIcon.java41 * <code>TrayIcon</code> can have a tooltip (text), an image, a popup
49 * displays the specified popup menu. When the mouse hovers
61 * will assign different gestures to showing a popup menu and
90 private PopupMenu popup; field in class:TrayIcon
203 * tooltip and popup menu.
208 * @param popup the menu to be used for the tray icon's popup
209 * menu; if the value is <code>null</code> no popup menu is shown
226 public TrayIcon(Image image, String tooltip, PopupMenu popup) { argument
228 setPopupMenu(popup);
302 setPopupMenu(PopupMenu popup) argument
[all...]
H A DComponent.java6909 PopupMenu popup = (PopupMenu)popups.elementAt(i);
6910 popup.addNotify();
6979 PopupMenu popup = (PopupMenu)popups.elementAt(i);
6980 popup.removeNotify();
8013 * Adds the specified popup menu to the component.
8014 * @param popup the popup menu to be added to the component.
8016 * @exception NullPointerException if {@code popup} is {@code null}
8019 public void add(PopupMenu popup) { argument
8021 if (popup
8044 remove(MenuComponent popup) argument
[all...]
/openjdk7/jdk/src/windows/classes/sun/awt/windows/
H A DWTrayIconPeer.java49 PopupMenu popup; field in class:WTrayIconPeer
83 if (popup != newPopup) {
84 if (popup != null) {
85 popupParent.remove(popup);
90 popup = newPopup;
92 if (popup != null) {
93 ((WPopupMenuPeer)popup.getPeer()).show(popupParent, new Point(x, y));
/openjdk7/hotspot/src/share/tools/IdealGraphVisualizer/Coordinator/src/com/sun/hotspot/igv/coordinator/actions/
H A DStructuredViewAction.java62 private static JPopupMenu popup; field in class:StructuredViewAction
77 popup = new JPopupMenu();
100 popup.add(item);
110 popup);
132 popup.addPopupMenuListener(new PopupMenuListener() {
164 popup.show(dropDownButton, 0, dropDownButton.getHeight());
/openjdk7/jdk/src/share/classes/javax/swing/plaf/basic/
H A DBasicPopupMenuUI.java144 static InputMap getInputMap(JPopupMenu popup, JComponent c) { argument
149 if (!popup.getComponentOrientation().isLeftToRight()) {
219 JPopupMenu popup = null;
221 for(int i = p.length - 1; popup == null && i >= 0; i--) {
223 popup = (JPopupMenu)p[i];
225 return popup;
475 // may not be selected, so submenu popup can be either the
494 JPopupMenu popup = menu.getPopupMenu();
495 MenuElement[] subs = popup.getSubElements();
506 newPath[len] = popup;
[all...]
H A DBasicComboBoxUI.java81 // It doesn't have anything to do with the popup's rendering.
84 // The implementation of ComboPopup that is used to show the popup.
85 protected ComboPopup popup; field in class:BasicComboBoxUI
90 // The arrow button that invokes the popup.
251 popup = createPopup();
252 listBox = popup.getList();
288 popup.uninstallingUI();
320 popup = null;
364 if ((popupMouseListener = popup.getMouseListener()) != null) {
367 if ((popupMouseMotionListener = popup
[all...]
/openjdk7/jdk/test/javax/swing/JPopupMenu/6800513/
H A Dbug6800513.java68 Field getPopup = JPopupMenu.class.getDeclaredField("popup");
70 Popup popup = (Popup) getPopup.get(popupMenu);
72 if (popup == null) {
73 throw new Exception("popup is null!");
76 String className = popup.getClass().getName();
78 throw new Exception("popup class is: " + className +
/openjdk7/jdk/src/share/classes/com/sun/tools/example/debug/gui/
H A DSourceTool.java358 JPopupMenu popup = new JPopupMenu();
361 popup.add(new JMenuItem("please select a line"));
365 popup.add(commandItem("Clear Breakpoint",
369 popup.add(commandItem("Set Breakpoint",
374 popup.add(new JMenuItem("not an executable line"));
377 popup.show(invoker,
378 x + popup.getWidth()/2, y + popup.getHeight()/2);
/openjdk7/jdk/test/javax/swing/plaf/synth/7158712/
H A Dbug7158712.java101 BasicComboPopup popup = (BasicComboPopup) comboBox.getAccessibleContext().getAccessibleChild(0);
103 Point popupPoint = popup.getLocationOnScreen();
108 throw new RuntimeException("Invalid popup coordinates. Popup location: " + popupPoint +
/openjdk7/jdk/test/javax/swing/JPopupMenu/4966112/
H A Dbug4966112.java69 System.out.println("Test can't identify the popup trigger button. Test skipped");
295 private JPopupMenu popup; field in class:bug4966112.AutoClosable
301 public void setPopup(JPopupMenu popup) { argument
302 this.popup = popup;
307 if (popup != null) {
308 popup.setVisible(false);
/openjdk7/jdk/src/solaris/classes/sun/awt/X11/
H A DXTrayIconPeer.java52 PopupMenu popup; field in class:XTrayIconPeer
343 if (popup != newPopup) {
344 if (popup != null) {
345 eframe.remove(popup);
350 popup = newPopup;
353 if (popup != null) {
355 popup.show(eframe, loc.x, loc.y);
H A DXWindow.java535 public void popup(int x, int y, int width, int height) { method in class:XWindow
712 Check for popup trigger !!
/openjdk7/jdk/src/macosx/classes/sun/lwawt/macosx/
H A DCTrayIcon.java42 private PopupMenu popup; field in class:CTrayIcon
62 this.popup = target.getPopupMenu();
73 if (popup != null) {
75 menuPeer = (CPopupMenu)popup.getPeer();
77 popup.addNotify();
98 if(popup == null) {
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/motif/
H A DMotifBorders.java668 JPopupMenu popup = (JPopupMenu)c;
670 String title = popup.getLabel();
677 FontMetrics fm = SwingUtilities2.getFontMetrics(popup, g, font);
682 int stringWidth = SwingUtilities2.stringWidth(popup, fm,
692 SwingUtilities2.drawString(popup, g, title, textLoc.x, textLoc.y);
/openjdk7/jdk/src/share/classes/javax/swing/plaf/synth/
H A DSynthComboBoxUI.java50 * Used to adjust the location and size of the popup. Very useful for
53 * part of the "visual" border, and in these cases, you'd like the popup
68 * remain in the PRESSED state while the combo popup is visible.
76 * to get it to open the popup. Also, anywhere you hover over the combo
170 if (popup instanceof SynthComboPopup) {
171 ((SynthComboPopup)popup).removePopupMenuListener(buttonHandler);
595 * or the arrowButton is pressed, <em>or</em> if the combo popup is
597 * the popup is visible, and so should the arrow button.
610 * button will not look pressed when the popup is open, regardless
687 * Ensures that the combo box is repainted when the popup i
[all...]

Completed in 131 milliseconds