/openjdk7/hotspot/agent/src/share/classes/com/sun/java/swing/ui/ |
H A D | CommonUI.java | 66 public static JLabel createLabel(String text, int mnemonic, Component comp) argument 70 if(mnemonic != -1) 71 label.setDisplayedMnemonic(mnemonic); 112 public static JRadioButton createRadioButton(String text, int mnemonic, ActionListener listener, boolean selected) argument 115 button.setMnemonic(mnemonic); 125 public static JRadioButton createRadioButton(String text, int mnemonic, boolean selected) argument 127 return createRadioButton(text, mnemonic, null, selected); 130 public static JRadioButton createRadioButton(String text, int mnemonic, ActionListener listener) argument 132 return createRadioButton(text, mnemonic, listener, false); 135 public static JRadioButton createRadioButton(String text, int mnemonic) argument 145 createCheckBox(String text, int mnemonic, ActionListener listener, boolean selected) argument 159 createCheckBox(String text, int mnemonic, ActionListener listener) argument 164 createCheckBox(String text, int mnemonic, boolean selected) argument 169 createCheckBox(String text, int mnemonic) argument 214 createButton(String text, ActionListener listener, int mnemonic) argument 245 createSmallButton(String text, ActionListener listener, int mnemonic) argument [all...] |
H A D | CommonMenuBar.java | 63 protected JMenu createMenu(String name, char mnemonic) argument 66 menu.setMnemonic(mnemonic);
|
/openjdk7/jdk/test/sun/tools/jconsole/ |
H A D | ResourceCheckTest.java | 77 {"Cascade.mnemonic", "", "", "", ""}, 79 {"Chart:.mnemonic", "", "", "", ""}, 93 {"Connect.mnemonic", "", "", "", ""}, 109 {"Connection.mnemonic", "", "", "", ""}, 125 {"Detect Deadlock.mnemonic", "", "", "", ""}, 152 {"Exit.mnemonic", "", "", "", ""}, 179 {"Help.AboutDialog.userGuideLink.mnemonic", "", "", "", ""}, 182 {"HelpMenu.About.title.mnemonic", "", "", "", ""}, 184 {"HelpMenu.UserGuide.title.mnemonic", "", "", "", ""}, 186 {"HelpMenu.title.mnemonic", "", "", "", ""}, [all...] |
/openjdk7/jdk/src/share/classes/sun/tools/jconsole/ |
H A D | LabeledComponent.java | 43 public LabeledComponent(String text, int mnemonic, JComponent comp) { argument 51 if (mnemonic > 0) { 52 label.setDisplayedMnemonic(mnemonic);
|
/openjdk7/jdk/test/javax/swing/regtesthelpers/ |
H A D | Util.java | 154 for (Integer mnemonic : mnemonicKeyCodes) { 155 robot.keyPress(mnemonic); 160 for (Integer mnemonic : mnemonicKeyCodes) { 161 robot.keyRelease(mnemonic); 166 * Gets key codes from system mnemonic key mask
|
/openjdk7/jdk/src/share/classes/javax/swing/colorchooser/ |
H A D | ColorChooserPanel.java | 142 int mnemonic = this.model.getInteger(this, "HexCodeMnemonic"); // NON-NLS: suffix 143 if (mnemonic > 0) { 144 this.label.setDisplayedMnemonic(mnemonic); 145 mnemonic = this.model.getInteger(this, "HexCodeMnemonicIndex"); // NON-NLS: suffix 146 if (mnemonic >= 0) { 147 this.label.setDisplayedMnemonicIndex(mnemonic);
|
/openjdk7/jdk/src/share/classes/javax/swing/ |
H A D | JLabel.java | 115 private int mnemonic = '\0'; field in class:JLabel 471 * Specify a keycode that indicates a mnemonic key. 475 * labelFor property when the mnemonic is activated. 482 * description: The mnemonic keycode. 485 int oldKey = mnemonic; 486 mnemonic = key; 487 firePropertyChange("displayedMnemonic", oldKey, mnemonic); 490 SwingUtilities.findDisplayedMnemonicIndex(getText(), mnemonic)); 502 * @param aChar a char specifying the mnemonic to display 514 * Return the keycode that indicates a mnemonic ke 1586 int mnemonic; field in class:JLabel.AccessibleJLabel.LabelKeyBinding 1588 LabelKeyBinding(int mnemonic) argument [all...] |
H A D | DefaultButtonModel.java | 59 /** The button's mnemonic. */ 60 protected int mnemonic = 0; field in class:DefaultButtonModel 290 mnemonic = key; 298 return mnemonic;
|
H A D | AbstractButton.java | 85 /** Identifies a change to the button's mnemonic. */ 86 public static final String MNEMONIC_CHANGED_PROPERTY = "mnemonic"; 194 private int mnemonic; field in class:AbstractButton 1534 * Returns the keyboard mnemonic from the the current model. 1535 * @return the keyboard mnemonic from the model 1538 return mnemonic; 1542 * Sets the keyboard mnemonic on the current model. 1543 * The mnemonic is the key which when combined with the look and feel's 1548 * A mnemonic must correspond to a single key on the keyboard 1558 * If the character defined by the mnemonic i 1571 setMnemonic(int mnemonic) argument 1590 setMnemonic(char mnemonic) argument 1663 updateDisplayedMnemonicIndex(String text, int mnemonic) argument 3053 int mnemonic; field in class:AbstractButton.AccessibleAbstractButton.ButtonKeyBinding 3055 ButtonKeyBinding(int mnemonic) argument [all...] |
H A D | JTabbedPane.java | 1228 * Returns the keyboard mnemonic for accessing the specified tab. 1229 * The mnemonic is the key which when combined with the look and feel's 1234 * @param tabIndex the index of the tab that the mnemonic refers to 1235 * @return the key code which represents the mnemonic; 1236 * -1 if a mnemonic is not specified for the tab 1252 * provide decoration for as representing the mnemonic character. 1255 * @param tabIndex the index of the tab that the mnemonic refers to 1256 * @return index representing mnemonic character if one exists; 1586 * text should be decorated to represent the mnemonic. Not all look and 1588 * no mnemonic fo 1662 setMnemonicAt(int tabIndex, int mnemonic) argument 2044 int mnemonic = -1; field in class:JTabbedPane.Page 2080 setMnemonic(int mnemonic) argument [all...] |
H A D | JColorChooser.java | 700 int mnemonic = SwingUtilities2.getUIDefaultsInt("ColorChooser.resetMnemonic", locale, -1); 701 if (mnemonic != -1) { 702 resetButton.setMnemonic(mnemonic);
|
H A D | JFileChooser.java | 174 /** Identifies change in the mnemonic for the approve (yes, ok) button. */ 1008 * Returns the approve button's mnemonic. 1009 * @return an integer value for the mnemonic key 1018 * Sets the approve button's mnemonic using a numeric keycode. 1020 * @param mnemonic an integer value for the mnemonic key 1025 * description: The mnemonic key accelerator for the ApproveButton. 1029 public void setApproveButtonMnemonic(int mnemonic) { argument 1030 if(approveButtonMnemonic == mnemonic) { 1034 approveButtonMnemonic = mnemonic; 1044 setApproveButtonMnemonic(char mnemonic) argument [all...] |
H A D | JMenuItem.java | 156 * keyboard mnemonic. 159 * @param mnemonic the keyboard mnemonic for the <code>JMenuItem</code> 161 public JMenuItem(String text, int mnemonic) { argument 164 setMnemonic(mnemonic);
|
/openjdk7/jdk/src/share/classes/javax/swing/plaf/metal/ |
H A D | MetalTitlePane.java | 451 int mnemonic = MetalUtils.getInt("MetalTitlePane.restoreMnemonic", -1); 453 if (mnemonic != -1) { 454 mi.setMnemonic(mnemonic); 458 mnemonic = MetalUtils.getInt("MetalTitlePane.iconifyMnemonic", -1); 459 if (mnemonic != -1) { 460 mi.setMnemonic(mnemonic); 466 mnemonic = 468 if (mnemonic != -1) { 469 mi.setMnemonic(mnemonic); 476 mnemonic [all...] |
/openjdk7/jdk/test/javax/swing/JRootPane/4670486/ |
H A D | bug4670486.java | 82 private static JMenuItem createMenuItem(String name, char mnemonic) { argument 83 JMenuItem menuItem = new JMenuItem(name, mnemonic);
|
/openjdk7/jdk/test/javax/swing/JMenu/4515762/ |
H A D | bug4515762.java | 82 private static JMenuItem createMenuItem(String name, char mnemonic) { argument 83 JMenuItem menuItem = new JMenuItem(name, mnemonic);
|
/openjdk7/jdk/src/share/classes/javax/swing/plaf/basic/ |
H A D | BasicMenuUI.java | 114 int mnemonic = menuItem.getModel().getMnemonic(); 120 if (mnemonic == lastMnemonic) { 131 if (mnemonic != 0) { 139 windowInputMap.put(KeyStroke.getKeyStroke(mnemonic, 143 lastMnemonic = mnemonic;
|
H A D | BasicColorChooserUI.java | 298 int mnemonic = newPanels[i].getMnemonic(); 301 if (mnemonic > 0) { 302 tabbedPane.setMnemonicAt(i, mnemonic);
|
H A D | BasicOptionPaneUI.java | 1407 private int mnemonic; field in class:BasicOptionPaneUI.ButtonFactory 1411 ButtonFactory(String text, int mnemonic, Icon icon, int minimumWidth) { argument 1413 this.mnemonic = mnemonic; 1429 if (mnemonic != 0) { 1430 button.setMnemonic(mnemonic);
|
H A D | BasicFileChooserUI.java | 73 * The mnemonic keycode used for the approve button when a directory 648 * Returns the mnemonic for the given key. 689 int mnemonic = fc.getApproveButtonMnemonic(); 690 if (mnemonic > 0) { 691 return mnemonic; 697 return mnemonic;
|
H A D | BasicPopupMenuUI.java | 280 * Handles mnemonic for children JMenuItems. 328 int mnemonic = item.getMnemonic(); 330 item.isVisible() && lower(keyChar) == lower(mnemonic)) { 362 // Select the menu item with the matching mnemonic. If 363 // the same mnemonic has been invoked then select the next 384 private char lower(int mnemonic) { argument 385 return Character.toLowerCase((char) mnemonic); 965 * is active. It forwards key events to MenuSelectionManager for mnemonic 984 * the menu and menuitem share the same mnemonic.
|
H A D | BasicTabbedPaneUI.java | 517 * when the title of a mnemonic changes, or when tabs are added/removed. 523 int mnemonic = tabPane.getMnemonicAt(counter); 525 if (mnemonic > 0) { 526 addMnemonic(counter, mnemonic); 542 * Adds the specified mnemonic at the specified index. 544 private void addMnemonic(int index, int mnemonic) { argument 548 mnemonicInputMap.put(KeyStroke.getKeyStroke(mnemonic, BasicLookAndFeel.getFocusAcceleratorKeyMask()), 550 mnemonicToIndexMap.put(Integer.valueOf(mnemonic), Integer.valueOf(index)); 2238 int mnemonic = (int)e.getActionCommand().charAt(0); 2239 if (mnemonic > [all...] |
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/bugspot/ |
H A D | BugSpot.java | 820 private static JMenu createMenu(String name, char mnemonic, int mnemonicPos) { argument 822 menu.setMnemonic(mnemonic); 843 private static JMenuItem createMenuItem(String name, ActionListener l, char mnemonic, int mnemonicPos) { argument 845 item.setMnemonic(mnemonic); 854 char mnemonic, 857 item.setMnemonic(mnemonic); 850 createMenuItem(String name, ActionListener l, int accelerator, int acceleratorMods, char mnemonic, int mnemonicPos) argument
|
/openjdk7/jdk/src/macosx/classes/com/apple/laf/ |
H A D | AquaMenuPainter.java | 286 final int mnemonic = (AquaMnemonicHandler.isMnemonicHidden() ? -1 : model.getMnemonic()); 287 drawString(g, c, text, mnemonic, textRect.x, textRect.y + fm.getAscent(), isEnabled, isSelected);
|
/openjdk7/jdk/src/share/classes/com/sun/java/swing/plaf/gtk/ |
H A D | GTKColorChooserPanel.java | 115 * Returns the mnemonic to use with <code>getDisplayName</code>. 118 String m = (String)UIManager.get("GTKColorChooserPanel.mnemonic"); 131 * Character to underline that represents the mnemonic. 256 String mnemonic = (String)UIManager.get(key + "Mnemonic", getLocale()); 258 if (mnemonic != null) { 260 label.setDisplayedMnemonic(Integer.parseInt(mnemonic));
|