// Copyright 2002, SLAC, Stanford University, U.S.A.
package org.freehep.graphicsio.test;
import javax.swing.JEditorPane;
import javax.swing.text.html.HTMLEditorKit;
/**
*
* @author Mark Donszelmann
* @version $Id: TestHTML.java 8584 2006-08-10 23:06:37Z duns $
*/
public class TestHTML extends TestingPanel {
private String text;
public TestHTML(String[] args) throws Exception {
super(args);
setName("HTML");
text = "<VectorGraphics & AdapterCard "
+ "= ex2y3>";
JEditorPane pane = new JEditorPane();
pane.setContentType("text/html");
pane.setEditorKit(new HTMLEditorKit());
pane.setText(text);
pane.setEditable(false);
add(pane);
}
public static void main(String[] args) throws Exception {
new TestHTML(args).runTest();
}
}