Best way to stop a JTree selection change from happening?

前端 未结 7 2251
傲寒
傲寒 2021-01-06 05:07

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

7条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-06 05:37

    Set a TreeSelectionModel which implements the appropriate semantics.

提交回复
热议问题