/**
* @return The selected node within the table
*/
public DefaultMutableTreeNode getSelectedNode() {
TreePath path = this.getSelectedPath();
if ((path != null) && (path.getLastPathComponent() != null) && (path.getLastPathComponent() instanceof DefaultMutableTreeNode)) {
return ((DefaultMutableTreeNode) path.getLastPathComponent());
} else {
return null;
}
}