Here you can find the source of setRowLines(JTable table, int row, int lines)
public static void setRowLines(JTable table, int row, int lines)
//package com.java2s; //License from project: LGPL import javax.swing.JTable; public class Main { public static void setRowLines(JTable table, int row, int lines) { if (lines == 0) lines = 1;/* w ww . j ava 2 s . c om*/ table.setRowHeight(row, lines * table.getRowHeight()); } }