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