Skip to content

Commit e321014

Browse files
truptipatil-13Paul Hohensee
authored andcommitted
8361298: SwingUtilities/bug4967768.java fails where character P is not underline
Backport-of: 57553ca1dbc63e329116bc11764816a4c5ccb297
1 parent 961e8ee commit e321014

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

test/jdk/javax/swing/SwingUtilities/bug4967768.java

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,19 @@
3737

3838
public class bug4967768 {
3939
private static final String INSTRUCTIONS = """
40-
When the test starts you'll see a button "Oops"
41-
with the "p" letter underlined at the bottom
42-
of the instruction frame.
40+
When the test starts you'll see a button "Oops".
41+
42+
For Windows and GTK Look and Feel, you will need to
43+
press the ALT key to make the mnemonic visible.
44+
Once the ALT key is pressed, the letter "p" will be
45+
underlined at the bottom of the instruction frame.
4346
4447
Ensure the underline cuts through the descender
4548
of letter "p", i.e. the underline is painted
4649
not below the letter but below the baseline.
50+
51+
Press Pass if you see the expected behaviour else
52+
press Fail.
4753
""";
4854

4955
public static void main(String[] args) throws Exception {

0 commit comments

Comments
 (0)