Ejemplo n.º 1
0
 protected void showEditor() {
   if (myReplace != null) {
     myComponent.remove(myReplace);
     myReplace = null;
   }
   myEditorComponent = new NodeEditorComponent(myContext);
   myComponent.add(myEditorComponent.getExternalComponent(), BorderLayout.CENTER);
   myComponent.validate();
 }
Ejemplo n.º 2
0
  protected void showComponent(JComponent replace) {
    if (myEditorComponent != null) {
      myComponent.remove(myEditorComponent.getExternalComponent());
      myEditorComponent.dispose();
      myEditorComponent = null;
    }

    if (myReplace != null) {
      myComponent.remove(myReplace);
      myReplace = null;
    }

    myReplace = replace;
    myComponent.add(myReplace, BorderLayout.CENTER);
    myComponent.validate();
  }