Java JTable Row setRowLines(JTable table, int row, int lines)

Here you can find the source of setRowLines(JTable table, int row, int lines)

Description

set Row Lines

License

LGPL

Declaration

public static void setRowLines(JTable table, int row, int lines) 

Method Source Code

//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());
    }
}

Related

  1. jtable$convertRowIndexToModel(JTable table, int index)
  2. makeIntoMoveRowUpButton(final JTable table, JButton button)
  3. packRows(JTable table, int start, int end, int margin)
  4. removeTableRows(DefaultTableModel model)
  5. rowToModelIndex(JTable table, int row)
  6. setTableSize(JTable table, float percentage, int rows)
  7. setToRowBackground(Component c, JTable table, int row)
  8. updateTableSizes(JTable table, int rows)
  9. writeRow(DefaultTableModel table, List data, int row)