code: private void jTree1ValueChanged(javax.swing.event.TreeSelectionEvent evt)//GEN-FIRST:event_jTree1ValueChanged
      {//GEN-HEADEREND:event_jTree1ValueChanged
          javax.swing.tree.TreePath tp = evt.getPath();
          if (tp != null)
          {
              Object o = tp.getLastPathComponent();
              if (o instanceof PropertySheetModel)
              {
                  PropertySheetModel p = (PropertySheetModel) o;
                  PropertySheetView pv =
                  (PropertySheetView)hmPropertySheets.get(p.getPropertySheetClass());
                  if (pv == null)
                  {
                      try
                      {
                          pv = (PropertySheetView)p.getPropertySheetClass().newInstance();
                      }
                      catch (InstantiationException ie)
                      {
                          // What to do here?????
                          ie.printStackTrace();
                      }
                      catch (IllegalAccessException iae)
                      {
                          iae.printStackTrace();
                      }
                  }
                  pv.setModel(p);
                  this.jScrollPane2.setViewportView((java.awt.Component)pv);
              }
          }
      }
docs: GEN-END:initComponents