private DefaultMutableTreeNode getSelectedNode() {
public DefaultMutableTreeNode getSelectedNode() {
  private DefaultMutableTreeNode getSelectedNode() {    TreePath selPath = workspace.getSelectionPath();    if (selPath == null) return null;    return (DefaultMutableTreeNode) selPath.getLastPathComponent();  }