if(treeTable.getValueAt(treeTable.getSelectedRow(), 0) != null && treeTable.getValueAt(treeTable.getSelectedRow(), 0).getClass().getSimpleName().equals("MainTreeNode")){
MainTreeNode node = (MainTreeNode) treeTable.getValueAt(treeTable.getSelectedRow(), 0);
new PersonModify(null, node.getPersID(), Status.ANZEIGEN);
}else if(treeTable.getValueAt(treeTable.getSelectedRow(), 0) != null && treeTable.getValueAt(treeTable.getSelectedRow(), 0).getClass().getSimpleName().equals("SubTreeNode")){
SubTreeNode node = (SubTreeNode) treeTable.getValueAt(treeTable.getSelectedRow(), 0);
new PDFExport(node.getGehAusID(), node.getPersID());
}
} catch (InstantiationException e1) {
e1.printStackTrace();
JOptionPane.showMessageDialog(