equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
21 * questions. |
21 * questions. |
22 */ |
22 */ |
23 |
23 |
24 /* |
24 /* |
25 * @test |
25 * @test |
26 * @bug 8160986 8174845 8176883 |
26 * @bug 8160986 8174845 8176883 8165828 |
27 * @summary Bad rendering of Swing UI controls with Metal L&F on HiDPI display |
27 * @summary Bad rendering of Swing UI controls with Metal L&F on HiDPI display |
28 * @run main/manual MetalHiDPIIconsTest |
28 * @run main/manual MetalHiDPIIconsTest |
29 */ |
29 */ |
30 import java.awt.Color; |
30 import java.awt.Color; |
31 import java.awt.GridBagConstraints; |
31 import java.awt.GridBagConstraints; |
48 private static volatile CountDownLatch countDownLatch; |
48 private static volatile CountDownLatch countDownLatch; |
49 private static final String INSTRUCTIONS = "INSTRUCTIONS:\n" |
49 private static final String INSTRUCTIONS = "INSTRUCTIONS:\n" |
50 + "Verify that icons are painted smoothly for standard Swing UI controls.\n\n" |
50 + "Verify that icons are painted smoothly for standard Swing UI controls.\n\n" |
51 + "If the display does not support HiDPI mode press PASS.\n\n" |
51 + "If the display does not support HiDPI mode press PASS.\n\n" |
52 + "1. Run the SwingSet2 demo on HiDPI Display.\n" |
52 + "1. Run the SwingSet2 demo on HiDPI Display.\n" |
53 + "2. Select Metal Look and Feel\n" |
53 + "2. Select Java Look and Feel. It is equivalent to Metal Look And Feel\n" |
54 + "3. Check that the icons are painted smoothly on Swing UI controls like:\n" |
54 + "3. Check that the icons are painted smoothly on Swing UI controls like:\n" |
55 + " - JRadioButton\n" |
55 + " - JRadioButton\n" |
56 + " - JCheckBox\n" |
56 + " - JCheckBox\n" |
57 + " - JComboBox\n" |
57 + " - JComboBox\n" |
58 + " - JScrollPane (vertical and horizontal scroll bars)\n" |
58 + " - JScrollPane (vertical and horizontal scroll bars)\n" |