equal
deleted
inserted
replaced
34 |
34 |
35 import static java.awt.image.BufferedImage.TYPE_INT_ARGB; |
35 import static java.awt.image.BufferedImage.TYPE_INT_ARGB; |
36 |
36 |
37 /** |
37 /** |
38 * @test |
38 * @test |
39 * @bug 8015085 |
39 * @bug 8015085 8079253 |
40 * @summary Shortening via " ... " is broken for Strings containing a combining |
40 * @summary Shortening via " ... " is broken for Strings containing a combining |
41 * diaeresis. |
41 * diaeresis. |
42 * @author Sergey Bylokhov |
42 * @run main TestBadBreak |
43 */ |
43 */ |
44 public class TestBadBreak { |
44 public class TestBadBreak { |
45 |
45 |
46 static JFrame frame; |
46 static JFrame frame; |
47 static Robot robot; |
47 static Robot robot; |
77 Graphics2D g2d = i1.createGraphics(); |
77 Graphics2D g2d = i1.createGraphics(); |
78 super.paintComponent(g2d); |
78 super.paintComponent(g2d); |
79 g2d.dispose(); |
79 g2d.dispose(); |
80 } |
80 } |
81 }; |
81 }; |
|
82 label.setOpaque(true); |
82 frame.getContentPane().add(label); |
83 frame.getContentPane().add(label); |
83 frame.setBounds(200, 200, 200, 90); |
84 frame.setBounds(200, 200, 200, 90); |
84 } |
85 } |
85 }); |
86 }); |
86 robot.waitForIdle(); |
87 robot.waitForIdle(); |