Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JTable without horizontal and vertical lines

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

like image 740
Jagadesh Avatar asked Dec 23 '22 01:12

Jagadesh


1 Answers

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);
like image 73
bakkal Avatar answered Jan 09 '23 00:01

bakkal