code: private void jTreeDatabaseValueChanged (javax.swing.event.TreeSelectionEvent evt)//GEN-FIRST:event_jTreeDatabaseValueChanged
      {//GEN-HEADEREND:event_jTreeDatabaseValueChanged
          // Add your handling code here:
          Object selectedObject = evt.getPath().getLastPathComponent();
          if (selectedObject instanceof PropertyEditorTarget)
          {
              PropertyEditorTarget p = (PropertyEditorTarget)selectedObject;
              if (p.getPropertyEditorClass() != null)
              {
                  try
                  {
                      if(!this.hmPropertyEditors.containsKey(p.getPropertyEditorClass()))
                      {
                          this.hmPropertyEditors.put(p.getPropertyEditorClass(), p.getPropertyEditorClass().newInstance());
                      }
                      PropertyEditor propertyEditor = (PropertyEditor)hmPropertyEditors.get(p.getPropertyEditorClass());
                      this.jScrlProperty.setViewportView(propertyEditor);
                      propertyEditor.setEditorTarget(p);
                  }
                  catch (Throwable t)
                  {
                      t.printStackTrace();
                      this.jScrlProperty.setViewportView(null);
                  }
              }
              else
              {
                  this.jScrlProperty.setViewportView(null);
              }
          }
          else
          {
              this.jScrlProperty.setViewportView(null);
          }
      }
docs: GEN-END:initComponents