Hiding/filtering nodes in a JTree?

后端 未结 7 3087
暖寄归人
暖寄归人 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:17

    If you're looking for a commercial solution, JideSoft has a filterable treemodel. Other than that, SwingX has a Filter API which'll work on JXTable, JXTreeTable, JXTree, and JXList.

提交回复
热议问题