Disable items in JList

前端 未结 4 1323
清歌不尽
清歌不尽 2020-11-29 10:16

I\'m using a JList as part of a wizard to display all the steps to be performed (it also allows clicking on a step to go to it). Some steps will not always be needed, based

4条回答
  •  不知归路
    2020-11-29 11:05

    It would be easier if you removed the inapplicable items from the list model, instead of disabling them. Would users really want to see disabled items? I don't believe it adds any value, but instead adds visual clutter.

提交回复
热议问题