private void jTree1ValueChanged(javax.swing.event.TreeSelectionEvent evt) {//GEN-FIRST:event_jTree1ValueChanged
        TreePath[] paths = evt.getPaths();
 
		// Iterate through all affected nodes
		for (int i=0; i<paths.length; i++) {
			if (evt.isAddedPath(i)) {
				// This node has been selected
                            DefaultMutableTreeNode x = (DefaultMutableTreeNode)paths[i].getLastPathComponent();
				System.out.println(x.getUserObject().getClass());
				break;
			} else {
				// This node has been deselected
				break;
			}
		}
    }//GEN-LAST:event_jTree1ValueChanged