* (overridden)
*
* @see javax.swing.event.TreeSelectionListener#valueChanged(javax.swing.event.TreeSelectionEvent)
*/
public void valueChanged(TreeSelectionEvent e) {
TransformTarget selected = null;
if (e.getPath().getLastPathComponent() instanceof DefaultMutableTreeNode) {
DefaultMutableTreeNode node = (DefaultMutableTreeNode) e.getPath()
.getLastPathComponent();
if (node.getUserObject() instanceof TransformTarget) {
selected = (TransformTarget) node.getUserObject();
try {
description.getDocument().remove(0,
description.getDocument().getLength());
description.getDocument().insertString(0,
selected.getDescription(),
description.getInputAttributes());
System.out.println(selected.getDescription());
} catch (BadLocationException e1) {
e1.printStackTrace();
}
}
}