Adding a JScrollPane component to a JTable column

后端 未结 3 653
北荒
北荒 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

    A Renderer just paints the cells. I believe you need to implement a TableCellEditor to scroll.

提交回复
热议问题