Hiding/filtering nodes in a JTree?

后端 未结 7 3089
暖寄归人
暖寄归人 2021-02-20 02:21

I have a data object represented in a TreeModel, and I\'d like to show only part of it in my JTree--for the sake of argument, say the leaves and their

7条回答
  •  后悔当初
    2021-02-20 03:06

    So long as it is still a tree you are displaying, then TreeModel that filters you existing TreeModel should be simple enough.

提交回复
热议问题