如何创建一个没有垂直线和水平线的 JTable...
最佳答案
尝试使用 setShowGrid()
、setShowVerticalLines()
和 setShowHorizontalLines()
Sets whether the table draws vertical lines between cells. If showVerticalLines is true it does; if it is false it doesn't.
示例:
table.setShowGrid(false);
table.setShowVerticalLines(false);
table.setShowGrid(false);
table.setShowHorizontalLines(false);
关于java - 没有水平和垂直线的 JTable,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3287756/