Java Swing How to - Increase the row height








Question

We would like to know how to increase the row height.

Answer

 //  w w  w .j  a v  a  2  s  .  c  o m


import javax.swing.JTable;

public class Main {
  public static void main(String[] argv) throws Exception {

    JTable table = new JTable();

    table.setRowHeight(table.getRowHeight() + 3);

  }
}