equal
deleted
inserted
replaced
18 * |
18 * |
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
20 * or visit www.oracle.com if you need additional information or have any |
20 * or visit www.oracle.com if you need additional information or have any |
21 * questions. |
21 * questions. |
22 */ |
22 */ |
23 /* |
23 |
|
24 /** |
24 * @test |
25 * @test |
25 * @bug 8178430 |
26 * @bug 8178430 |
26 * @summary JMenu in GridBagLayout flickers when label text shows "..." and |
27 * @summary JMenu in GridBagLayout flickers when label text shows "..." and |
27 * is updated |
28 * is updated |
|
29 * @key headful |
28 * @run main LabelDotTest |
30 * @run main LabelDotTest |
29 */ |
31 */ |
|
32 |
30 import java.awt.Dimension; |
33 import java.awt.Dimension; |
31 import java.awt.GridBagConstraints; |
34 import java.awt.GridBagConstraints; |
32 import java.awt.GridBagLayout; |
35 import java.awt.GridBagLayout; |
33 import java.awt.Robot; |
36 import java.awt.Robot; |
34 |
37 |
110 public static void main(String[] args) throws Exception { |
113 public static void main(String[] args) throws Exception { |
111 try { |
114 try { |
112 SwingUtilities.invokeAndWait(() -> createUI()); |
115 SwingUtilities.invokeAndWait(() -> createUI()); |
113 runTest(50); |
116 runTest(50); |
114 } finally { |
117 } finally { |
115 SwingUtilities.invokeAndWait(() -> frame.dispose()); |
118 if (frame != null) { |
|
119 SwingUtilities.invokeAndWait(() -> frame.dispose()); |
|
120 } |
116 if (isException) |
121 if (isException) |
117 throw new RuntimeException("Size of Menu bar is not correct."); |
122 throw new RuntimeException("Size of Menu bar is not correct."); |
118 } |
123 } |
119 } |
124 } |
120 } |
125 } |