/openjdk7/jdk/test/javax/swing/JPopupMenu/6827786/ |
H A D | bug6827786.java | 40 private static JMenu menu; field in class:bug6827786 67 // select menu 112 if (item != menu.getMenuComponent(index)) { 115 + menu.getMenuComponent(index)); 123 menu = new JMenu("File"); 124 menu.setMnemonic('F'); 126 menu.add(new JMenuItem("Save", 'S')); 131 menu.add(sub); 133 menu.add(new JMenuItem("Special", 'S')); 136 bar.add(menu); [all...] |
/openjdk7/jdk/test/javax/swing/JPopupMenu/6800513/ |
H A D | bug6800513.java | 48 private static JMenu menu; field in class:bug6800513 98 return new Rectangle(menu.getLocationOnScreen(), menu.getSize()); 124 menu = new JMenu("Menu"); 126 menu.add(new JMenuItem("Menu Item #1")); 127 menu.add(new JMenuItem("Menu Item #2")); 128 menu.add(new JMenuItem("Menu Item #3")); 130 menuBar.add(menu); 137 menu.getPopupMenu().addPropertyChangeListener(listener);
|
/openjdk7/hotspot/agent/src/share/classes/com/sun/java/swing/ui/ |
H A D | CommonMenuBar.java | 65 JMenu menu = new JMenu(name); 66 menu.setMnemonic(mnemonic); 67 return menu; 70 protected void addMenuItem(JMenu menu, Action action) argument 72 JMenuItem menuItem = menu.add(action); 76 protected void addCheckBoxMenuItem(JMenu menu, StateChangeAction a) argument 78 addCheckBoxMenuItem(menu, a, false); 81 protected void addCheckBoxMenuItem(JMenu menu, StateChangeAction a, boolean selected) argument 86 menu.add(mi); 90 protected void addRadioButtonMenuItem(JMenu menu, ButtonGrou argument 95 addRadioButtonMenuItem(JMenu menu, ButtonGroup group, StateChangeAction a, boolean selected) argument [all...] |
/openjdk7/jdk/src/share/classes/com/sun/tools/example/debug/gui/ |
H A D | JDBMenuBar.java | 185 private void addTool(JMenu menu, String toolTip, String labelText, argument 196 menu.add(mi);
|
/openjdk7/jdk/src/macosx/classes/com/apple/eawt/ |
H A D | _AppDockIconHandler.java | 45 public void setDockMenu(final PopupMenu menu) { argument 46 fDockMenu = menu; 48 // clear the menu if explicitly passed null 49 if (menu == null) { 54 // check if the menu needs a parent (8343136) 55 final MenuContainer container = menu.getParent(); 58 newParent.add(menu); 62 // instantiate the menu peer and set the native fDockMenu ivar 63 menu.addNotify();
|
H A D | _AppMenuBarHandler.java | 42 private static native void nativeSetMenuState(final int menu, final boolean visible, final boolean enabled); argument 94 // intentionally clearing the default menu 109 // Aqua is installed, but we aren't using the screen menu bar 117 throw new IllegalStateException("Unable to determine native menu bar from provided JMenuBar");
|
H A D | Application.java | 44 * <li>Open an about dialog when a user chooses About from the application menu.</li> 45 * <li>Open a preferences window when the users chooses Preferences from the application menu.</li> 50 * <li>Cleanly shutdown your application when the user chooses Quit from the application menu, Dock icon, or types Command-Q.</li> 154 * Installs a handler to create the Preferences menu item in your application's app menu. 156 * Setting the {@link PreferencesHandler} to <code>null</code> will remove the Preferences item from the app menu. 313 * @param menu the PopupMenu to attach to this application's Dock icon 318 public void setDockMenu(final PopupMenu menu) { argument 319 iconHandler.setDockMenu(menu); 369 * Sets the default menu ba [all...] |
/openjdk7/jdk/test/java/awt/KeyboardFocusmanager/TypeAhead/MenuItemActivatedTest/ |
H A D | MenuItemActivatedTest.java | 46 JMenu menu = new JMenu("Menu"); field in class:MenuItemActivatedTest 69 menu.setMnemonic('f'); 70 menu.add(item); 71 bar.add(menu);
|
/openjdk7/jdk/test/java/awt/KeyboardFocusmanager/TypeAhead/SubMenuShowTest/ |
H A D | SubMenuShowTest.java | 45 JMenu menu = new JMenu("Menu"); field in class:SubMenuShowTest 69 menu.setMnemonic('f'); 71 menu.add(submenu); 73 bar.add(menu);
|
/openjdk7/jdk/test/javax/swing/JInternalFrame/6725409/ |
H A D | bug6725409.java | 26 * @summary Checks that JInternalFrame's system menu 109 // The test depends on the order of the menu items in 136 "JInternalFrame's system menu during run-time"); 157 protected void addSystemMenuItems(JPopupMenu menu) { argument 158 super.addSystemMenuItems(menu); 159 systemPopupMenu = menu;
|
/openjdk7/jdk/test/javax/swing/JMenuItem/6209975/ |
H A D | bug6209975.java | 43 private static JMenu menu; field in class:bug6209975 102 Point p = menu.getLocationOnScreen(); 103 Dimension size = menu.getSize(); 119 menu = new JMenu("File"); 123 item = new JMenuItem("Just a menu item"); 126 menu.add(item); 131 menu.add(item); 133 mb.add(menu);
|
/openjdk7/jdk/src/share/classes/javax/swing/plaf/synth/ |
H A D | SynthInternalFrameTitlePane.java | 193 protected void addSystemMenuItems(JPopupMenu menu) { argument 195 JMenuItem mi = menu.add(restoreAction); 197 mi = menu.add(moveAction); 199 mi = menu.add(sizeAction); 201 mi = menu.add(iconifyAction); 203 mi = menu.add(maximizeAction); 205 menu.add(new JSeparator()); 206 mi = menu.add(closeAction);
|
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/windows/ |
H A D | WindowsInternalFrameTitlePane.java | 327 protected void addSystemMenuItems(JPopupMenu menu) { argument 328 JMenuItem mi = menu.add(restoreAction); 330 mi = menu.add(moveAction); 332 mi = menu.add(sizeAction); 334 mi = menu.add(iconifyAction); 336 mi = menu.add(maximizeAction); 339 mi = menu.add(closeAction); 467 // Update the internal frame icon for the system menu.
|
/openjdk7/jdk/src/share/classes/java/awt/ |
H A D | SystemColor.java | 124 * {@link #menu} system color. 125 * @see SystemColor#menu 258 0xFFC0C0C0, // menu = Color.lightGray; 329 public final static SystemColor menu = new SystemColor((byte)MENU); field in class:SystemColor 441 SystemColor.menu,
|
/openjdk7/jdk/src/macosx/classes/com/apple/laf/ |
H A D | ScreenMenuBar.java | 59 // We disable component events when the menu bar is not parented. So now we need to 92 // We don't listen to events when the menu bar is not parented. 211 JMenu menu = null; 214 menu = fSwingBar.getMenu(i); 215 if (menu == m) { 219 if (menu != null && menu.isVisible()) { 230 * Remove the screen menu associated with the specifiec menu. This 231 * also removes any associated component listener on the screen menu 236 removeSubmenu(final JMenu menu) argument [all...] |
/openjdk7/jdk/src/windows/native/sun/windows/ |
H A D | awt_Menu.cpp | 75 /* Create a new AwtMenu object and menu. */ 81 AwtMenu* menu = NULL; local 91 menu = new AwtMenu(); 102 menu->SetHMenu(hMenu); 104 menu->LinkObjects(env, self); 105 menu->SetMenuContainer(parentMenu); 107 parentMenu->AddItem(menu); 119 return menu; 404 jobject menu) 409 JNI_CHECK_PEER_RETURN(menu); 403 Java_sun_awt_windows_WMenuPeer_createSubMenu(JNIEnv *env, jobject self, jobject menu) argument [all...] |
H A D | awt_MenuBar.cpp | 36 jobject menu; member in struct:AddMenuStruct 70 /* Create a new AwtMenuBar object and menu. */ 158 jobject menu = env->CallObjectMethod(target, AwtMenuBar::getMenuMID,index); local 161 jobject menuItemPeer = GetPeerForTarget(env, menu); 166 env->DeleteLocalRef(menu); 224 jobject menu = ams->menu; local 230 JNI_CHECK_NULL_GOTO(menu, "null menu", ret); 234 /* The menu wa 286 Java_sun_awt_windows_WMenuBarPeer_addMenu(JNIEnv *env, jobject self, jobject menu) argument [all...] |
H A D | awt_MenuItem.h | 82 static AwtMenuItem* Create(jobject self, jobject menu); 85 INLINE void SetMenuContainer(AwtMenu* menu) { m_menuContainer = menu; } argument 168 AwtMenu* m_menuContainer; /* The menu object containing this item */
|
H A D | awt_PopupMenu.cpp | 68 /* Create a new AwtPopupMenu object and menu. */ 221 AwtMenu *menu = GetMenuContainer(); local 222 if (menu != NULL) {
|
/openjdk7/jdk/src/share/classes/javax/swing/ |
H A D | JDialog.java | 838 * @param menu the menubar being placed in the dialog 846 public void setJMenuBar(JMenuBar menu) { argument 847 getRootPane().setMenuBar(menu); 1101 * description: A transparent pane used for menu rendering.
|
H A D | JMenuBar.java | 50 * An implementation of a menu bar. You add <code>JMenu</code> objects to the 51 * menu bar to construct a menu. When the user selects a <code>JMenu</code> 55 * For information and examples of using menu bars see 57 href="http://java.sun.com/docs/books/tutorial/uiswing/components/menu.html">How to Use Menus</a>, 107 * Creates a new menu bar. 188 * Appends the specified menu to the end of the menu bar. 191 * @return the menu component 199 * Returns the menu a 230 setHelpMenu(JMenu menu) argument [all...] |
H A D | JRootPane.java | 99 * optional menu bar), you add the object to the <code>contentPane</code> 125 * <code>JRootPane</code> -- both as the direct parent of the menu and 129 * This capability is very useful when working with menu popups, 301 /** The menu bar. */ 307 /** The layered pane that manages the menu bar and content pane. */ 311 * The glass pane that overlays the menu bar and content pane, 562 * Adds or changes the menu bar used in the layered pane. 563 * @param menu the <code>JMenuBar</code> to add 565 public void setJMenuBar(JMenuBar menu) { argument 568 menuBar = menu; 581 setMenuBar(JMenuBar menu) argument [all...] |
/openjdk7/jdk/src/share/classes/javax/swing/plaf/basic/ |
H A D | BasicMenuUI.java | 211 protected void setupPostTimer(JMenu menu) { argument 212 Timer timer = new Timer(menu.getDelay(), new Actions( 213 Actions.SELECT, menu,false)); 230 private JMenu menu; field in class:BasicMenuUI.Actions 233 Actions(String key, JMenu menu, boolean shouldForce) { argument 235 this.menu = menu; 243 return menu; 247 JMenu menu = getMenu(e); 250 if (pm != null && pm != menu 391 public JMenu menu; field in class:BasicMenuUI.ChangeHandler [all...] |
/openjdk7/jdk/src/share/classes/javax/swing/plaf/metal/ |
H A D | MetalTitlePane.java | 63 * JMenuBar, typically renders the system menu items. 112 * Image used for the system menu icon 361 * system menu items. 422 * buttons and menu items. 434 * Returns the <code>JMenu</code> displaying the appropriate menu items 438 JMenu menu = new JMenu(""); 440 addMenuItems(menu); 442 return menu; 446 * Adds the necessary <code>JMenuItem</code>s to the passed in menu. 448 private void addMenuItems(JMenu menu) { argument [all...] |
/openjdk7/jdk/src/solaris/native/sun/awt/ |
H A D | awt_p.h | 215 Boolean menuBarReset; /* frame menu bar added/removed */ 288 Widget menu; member in struct:ChoiceData 302 Widget menu; member in struct:MenuList
|