Posted Monday, July 11, 2005 @ 21:24:37
what is the Dimension parameter value which you are using?
If you want to have space between columns only and not rows, try
dbTable.getTable().setIntercellSpacing(new Dimension(5,0))
In addition to setIntercellSpacing(), You have the following options in JTable. Use the appropriate method as you need.
public void setRowMargin(int rowMargin) Sets the amount of empty space between cells in adjacent rows.
public void setRowHeight(int rowHeight) Sets the height, in pixels, of all cells to rowHeight, revalidates, and repaints. The height of the cells will be equal to the row height minus the row margin.
public void setRowHeight(int row, int rowHeight) Sets the height for a specific row to rowHeight, revalidates, and repaints. The height of the cells in this row will be equal to the row height minus the row margin.