16 * 2 along with this work; if not, write to the Free Software Foundation,
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 javax.swing.*;
25
26 /**
27 * AWT/Swing overlapping test for {@link javax.swing.JEditorPane } component.
28 * <p>See base class for details.
29 */
30 /*
31 @test
32 @summary Simple Overlapping test for javax.swing.JLabel
33 @author sergey.grinev@oracle.com: area=awt.mixing
34 @library ../../regtesthelpers
35 @modules java.desktop/sun.awt
36 @build Util
37 @run main JEditorPaneOverlapping
38 */
39 public class JEditorPaneOverlapping extends SimpleOverlappingTestBase {
40
41 @Override
42 protected JComponent getSwingComponent() {
43 JEditorPane ch = new JEditorPane();
44 ch.setText("<b>Swing component</b>");
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 JEditorPaneOverlapping();
51 OverlappingTestBase.doMain(args);
52 }
53 }
|
16 * 2 along with this work; if not, write to the Free Software Foundation,
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 javax.swing.*;
25
26 /**
27 * AWT/Swing overlapping test for {@link javax.swing.JEditorPane } component.
28 * <p>See base class for details.
29 */
30 /*
31 @test
32 @summary Simple Overlapping test for javax.swing.JLabel
33 @author sergey.grinev@oracle.com: area=awt.mixing
34 @library ../../regtesthelpers
35 @modules java.desktop/sun.awt
36 java.desktop/java.awt.peer
37 @build Util
38 @run main JEditorPaneOverlapping
39 */
40 public class JEditorPaneOverlapping extends SimpleOverlappingTestBase {
41
42 @Override
43 protected JComponent getSwingComponent() {
44 JEditorPane ch = new JEditorPane();
45 ch.setText("<b>Swing component</b>");
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 JEditorPaneOverlapping();
52 OverlappingTestBase.doMain(args);
53 }
54 }
|