public NodeDisplay() { super(new BorderLayout()); // setPreferredSize(new Dimension(300, 300)); editorPane = new JEditorPane(); editorPane.setEditorKit(new HTMLEditorKit()); add(new JScrollPane(editorPane), BorderLayout.CENTER); }
public void display(CavityDBObject obj) { String str = obj.asString(); // System.out.println(String.format("Displaying:\n%s", str)); editorPane.setText(str); revalidate(); }