equal
deleted
inserted
replaced
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 /* |
25 test |
25 @test |
26 @bug 6299858 7124338 |
26 @key headful |
|
27 @bug 6299858 |
27 @summary PIT. Focused border not shown on List if selected item is removed, XToolkit |
28 @summary PIT. Focused border not shown on List if selected item is removed, XToolkit |
28 @author Dmitry.Cherepanov@SUN.COM area=awt.list |
29 @library /test/lib |
29 @run applet FirstItemRemoveTest.html |
30 @build jdk.test.lib.Platform |
|
31 @run main FirstItemRemoveTest |
30 */ |
32 */ |
31 |
33 |
32 import jdk.test.lib.Platform; |
34 import jdk.test.lib.Platform; |
33 |
35 |
34 import java.applet.Applet; |
|
35 import java.awt.*; |
36 import java.awt.*; |
36 import java.awt.event.*; |
37 import java.awt.event.*; |
37 |
38 |
38 public class FirstItemRemoveTest extends Applet |
39 public class FirstItemRemoveTest extends Frame |
39 { |
40 { |
40 List list = new List(4, false); |
41 List list = new List(4, false); |
41 Panel panel = new Panel(); |
42 Panel panel = new Panel(); |
|
43 |
|
44 public static void main(final String[] args) { |
|
45 FirstItemRemoveTest app = new FirstItemRemoveTest(); |
|
46 app.init(); |
|
47 app.start(); |
|
48 } |
42 |
49 |
43 public void init() |
50 public void init() |
44 { |
51 { |
45 list.add("000"); |
52 list.add("000"); |
46 list.add("111"); |
53 list.add("111"); |
57 }//End init() |
64 }//End init() |
58 |
65 |
59 public void start () |
66 public void start () |
60 { |
67 { |
61 setSize (200,200); |
68 setSize (200,200); |
|
69 setUndecorated(true); |
|
70 setLocationRelativeTo(null); |
62 setVisible(true); |
71 setVisible(true); |
63 validate(); |
72 validate(); |
64 |
73 |
65 test(); |
74 test(); |
66 }// start() |
75 }// start() |