// 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: freehep-graphicsio-tests/src/main/java/org/freehep/graphicsio/test/TestHTML.java f493ff6e61b2 2005/12/01 18:46:43 duns $
*/
public class TestHTML extends TestingPanel {
private String text;
public TestHTML(String[] args) throws Exception {
super(args);
setName("HTML");
text = "<Vector<sup><b>Graphics</b></sup> & Adapter<i><sub>Card</sub></i> "
+ "= e<sup>x<sup>2</sup>y<sup>3</sup></sup>>";
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();
}
}