set JTable Row Lines - Java Swing

Java examples for Swing:JTable Row

Description

set JTable Row Lines

Demo Code


//package com.java2s;

import javax.swing.JTable;

public class Main {
    public static void setRowLines(JTable table, int row, int lines) {
        if (lines == 0)
            lines = 1;// ww  w .j a va  2s .c  o m
        table.setRowHeight(row, lines * table.getRowHeight());
    }
}

Related Tutorials