-
Bug
-
Resolution: Fixed
-
P4
-
1.1.8, 1.2.0, 1.2.1
-
beta
-
generic, x86
-
generic, solaris_2.6, windows_nt
In the entries: Mark Done, Mark ToDo, Mark Rejected,
setting mnemonics to D, T, and R, respectivly produce:
Mark Done
-
Mark ToDo
-
Mark Rejected
-
The specified mnemonic was upper case R, though, and that
would be the preferred character to underline.
Name: krT82822 Date: 08/17/99
In the following example (and similarly with other components) you cannot specify the correct character to underline:
JLabel label = new JLabel ("Save As...");
label.setDisplayedMnemonic ('A');
The 'A' in 'As' should be underlined (that's the intention at least), but the 'a' in 'Save' is what gets underlined.
The problem (aside from the lack of an API to specify exactly what should be underlined) is in the javax.swing.plaf.basic.BasicGraphicUtils drawString method which underlines the first character (upper OR lowercase) that matches the mnemonic character.
(Review ID: 94042)
======================================================================
setting mnemonics to D, T, and R, respectivly produce:
Mark Done
-
Mark ToDo
-
Mark Rejected
-
The specified mnemonic was upper case R, though, and that
would be the preferred character to underline.
Name: krT82822 Date: 08/17/99
In the following example (and similarly with other components) you cannot specify the correct character to underline:
JLabel label = new JLabel ("Save As...");
label.setDisplayedMnemonic ('A');
The 'A' in 'As' should be underlined (that's the intention at least), but the 'a' in 'Save' is what gets underlined.
The problem (aside from the lack of an API to specify exactly what should be underlined) is in the javax.swing.plaf.basic.BasicGraphicUtils drawString method which underlines the first character (upper OR lowercase) that matches the mnemonic character.
(Review ID: 94042)
======================================================================
- duplicates
-
JDK-4249401 java.awt.Checkbox (lowercase 'b') vs javax.swing.CheckBox (uppercase 'B')
-
- Closed
-
-
JDK-4248272 Enh'd mnemonic-setting (e.g., "view by _D_ate/_S_ize/_K_ind")
-
- Closed
-
- relates to
-
JDK-8284294 Create an automated regression test for RFE 4138746
-
- Resolved
-