Searched defs:mnemonic (Results 1 - 17 of 17) sorted by relevance

/openjdk7/jdk/test/javax/swing/JMenu/4515762/
H A Dbug4515762.java82 private static JMenuItem createMenuItem(String name, char mnemonic) { argument
83 JMenuItem menuItem = new JMenuItem(name, mnemonic);
/openjdk7/jdk/test/javax/swing/JRootPane/4670486/
H A Dbug4670486.java82 private static JMenuItem createMenuItem(String name, char mnemonic) { argument
83 JMenuItem menuItem = new JMenuItem(name, mnemonic);
/openjdk7/jdk/src/share/classes/sun/tools/jconsole/
H A DLabeledComponent.java43 public LabeledComponent(String text, int mnemonic, JComponent comp) { argument
51 if (mnemonic > 0) {
52 label.setDisplayedMnemonic(mnemonic);
/openjdk7/hotspot/agent/src/share/classes/com/sun/java/swing/ui/
H A DCommonMenuBar.java63 protected JMenu createMenu(String name, char mnemonic) argument
66 menu.setMnemonic(mnemonic);
H A DCommonUI.java66 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...]
/openjdk7/jdk/src/share/classes/javax/swing/
H A DDefaultButtonModel.java59 /** The button's mnemonic. */
60 protected int mnemonic = 0; field in class:DefaultButtonModel
290 mnemonic = key;
298 return mnemonic;
H A DJMenuItem.java156 * keyboard mnemonic.
159 * @param mnemonic the keyboard mnemonic for the <code>JMenuItem</code>
161 public JMenuItem(String text, int mnemonic) { argument
164 setMnemonic(mnemonic);
H A DJLabel.java115 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 DJFileChooser.java174 /** 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 DSwingUtilities.java1901 * Returns index of the first occurrence of <code>mnemonic</code>
1906 * @param mnemonic The mnemonic to find the character for.
1909 static int findDisplayedMnemonicIndex(String text, int mnemonic) { argument
1910 if (text == null || mnemonic == '\0') {
1914 char uc = Character.toUpperCase((char)mnemonic);
1915 char lc = Character.toLowerCase((char)mnemonic);
H A DAbstractButton.java85 /** 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 DJTabbedPane.java1228 * 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...]
/openjdk7/hotspot/agent/src/share/classes/sun/jvm/hotspot/bugspot/
H A DBugSpot.java820 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/share/classes/javax/swing/plaf/basic/
H A DBasicOptionPaneUI.java1407 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 DBasicPopupMenuUI.java280 * 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 DBasicTabbedPaneUI.java517 * 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/jdk/src/macosx/classes/com/apple/laf/
H A DAquaTabbedPaneCopyFromBasicUI.java492 * when the title of a mnemonic changes, or when tabs are added/removed.
497 final int mnemonic = tabPane.getMnemonicAt(counter);
499 if (mnemonic > 0) {
500 addMnemonic(counter, mnemonic);
516 * Adds the specified mnemonic at the specified index.
518 private void addMnemonic(final int index, final int mnemonic) { argument
523 mnemonicInputMap.put(KeyStroke.getKeyStroke(mnemonic, Event.ALT_MASK | Event.CTRL_MASK), "setSelectedIndex");
524 mnemonicToIndexMap.put(new Integer(mnemonic), new Integer(index));
2080 int mnemonic = e.getActionCommand().charAt(0);
2081 if (mnemonic >
[all...]

Completed in 89 milliseconds