views:

70

answers:

1

How to create a JTable without vertical and horizontal lines in it...

+7  A: 

Try playing around with setShowGrid(), setShowVerticalLines() and setShowHorizontalLines()

setShowVerticalLines()

Sets whether the table draws vertical lines between cells. If showVerticalLines is true it does; if it is false it doesn't.

Examples:

table.setShowGrid(false);
table.setShowVerticalLines(false);

table.setShowGrid(false);
table.setShowHorizontalLines(false);
Bakkal