17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
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
21 * questions.
22 */
23
24
25 import javax.swing.*;
26
27 /**
28 * AWT/Swing overlapping test for {@link javax.swing.JList } component in GlassPane.
29 * <p>See base class for details.
30 */
31 /*
32 @test
33 @summary Simple Overlapping test for javax.swing.JList
34 @author sergey.grinev@oracle.com: area=awt.mixing
35 @library ../../regtesthelpers
36 @modules java.desktop/sun.awt
37 @build Util
38 @run main JListInGlassPaneOverlapping
39 */
40 public class JListInGlassPaneOverlapping extends GlassPaneOverlappingTestBase {
41
42 @Override
43 protected JComponent getSwingComponent() {
44 JList ch = new JList(new String[] {"one", "two", "three"});
45 return ch;
46 }
47
48 // this strange plumbing stuff is required due to "Standard Test Machinery" in base class
49 public static void main(String args[]) throws InterruptedException {
50 instance = new JListInGlassPaneOverlapping();
51 OverlappingTestBase.doMain(args);
52 }
53 }
|
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
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
21 * questions.
22 */
23
24
25 import javax.swing.*;
26
27 /**
28 * AWT/Swing overlapping test for {@link javax.swing.JList } component in GlassPane.
29 * <p>See base class for details.
30 */
31 /*
32 @test
33 @summary Simple Overlapping test for javax.swing.JList
34 @author sergey.grinev@oracle.com: area=awt.mixing
35 @library ../../regtesthelpers
36 @modules java.desktop/sun.awt
37 java.desktop/java.awt.peer
38 @build Util
39 @run main JListInGlassPaneOverlapping
40 */
41 public class JListInGlassPaneOverlapping extends GlassPaneOverlappingTestBase {
42
43 @Override
44 protected JComponent getSwingComponent() {
45 JList ch = new JList(new String[] {"one", "two", "three"});
46 return ch;
47 }
48
49 // this strange plumbing stuff is required due to "Standard Test Machinery" in base class
50 public static void main(String args[]) throws InterruptedException {
51 instance = new JListInGlassPaneOverlapping();
52 OverlappingTestBase.doMain(args);
53 }
54 }
|