Adding a JScrollPane component to a JTable column

后端 未结 3 656
北荒
北荒 2021-01-20 23:52

I\'m trying to add scrolling capabilities to a certain column in my JTable. I\'ve implemented a custom TableCellRenderer component and I can see the scroll pane inside the tabl

3条回答
  •  爱一瞬间的悲伤
    2021-01-21 00:25

    As an alternative, consider placing a single scroll pane in a separate container and updating it's view in your selection listener.

提交回复
热议问题