import javax.swing.JFrame; import javax.swing.JEditorPane; public class Harmony4582Test { public static void main(String argv[]) { JFrame frame = new JFrame("JEditorPane test"); JEditorPane pane = new JEditorPane("text/html", "
First line \nSecond line
"); frame.add(pane); frame.pack(); frame.setVisible(true); } }