Ejemplo n.º 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);
 }
Ejemplo n.º 2
0
 public void display(CavityDBObject obj) {
   String str = obj.asString();
   // System.out.println(String.format("Displaying:\n%s", str));
   editorPane.setText(str);
   revalidate();
 }