How to get rid of the border with a JTable / JScrollPane

前端 未结 6 1260
既然无缘
既然无缘 2021-02-06 22:18

If you run the small sample below you\'ll see a border around the center region. I\'m not sure why this border is showing.

It happens when a JTable is in a JScrollPane.

6条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-06 22:59

    I think the proper fix is to set the border on the viewportView to 'null'.

提交回复
热议问题