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 import java.awt.Dimension;
25 import javax.swing.*;
26
27 /**
28 * AWT/Swing overlapping test for {@link javax.swing.JLabel } component.
29 * <p>See base class for details.
30 */
31 /*
32 @test
33 @summary Simple Overlapping test for javax.swing.JLabel
34 @author sergey.grinev@oracle.com: area=awt.mixing
35 @library ../../regtesthelpers
36 @modules java.desktop/sun.awt
37 @build Util
38 @run main JLabelOverlapping
39 */
40 public class JLabelOverlapping extends SimpleOverlappingTestBase {
41
42 @Override
43 protected JComponent getSwingComponent() {
44 JLabel ch = new JLabel();
45 ch.setPreferredSize(new Dimension(50, 50));
46 ch.setText("Swing component");
47 return ch;
48 }
49
50 // this strange plumbing stuff is required due to "Standard Test Machinery" in base class
51 public static void main(String args[]) throws InterruptedException {
52 instance = new JLabelOverlapping();
53 OverlappingTestBase.doMain(args);
54 }
55 }
|
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 import java.awt.Dimension;
25 import javax.swing.*;
26
27 /**
28 * AWT/Swing overlapping test for {@link javax.swing.JLabel } component.
29 * <p>See base class for details.
30 */
31 /*
32 @test
33 @summary Simple Overlapping test for javax.swing.JLabel
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 JLabelOverlapping
40 */
41 public class JLabelOverlapping extends SimpleOverlappingTestBase {
42
43 @Override
44 protected JComponent getSwingComponent() {
45 JLabel ch = new JLabel();
46 ch.setPreferredSize(new Dimension(50, 50));
47 ch.setText("Swing component");
48 return ch;
49 }
50
51 // this strange plumbing stuff is required due to "Standard Test Machinery" in base class
52 public static void main(String args[]) throws InterruptedException {
53 instance = new JLabelOverlapping();
54 OverlappingTestBase.doMain(args);
55 }
56 }
|