I have a dialog where each entry in a JTree has its corresponding options in a different panel, which is updated when the selection changes. If options for one of the entrie
Set a TreeSelectionModel which implements the appropriate semantics.