For my Friend who want to customize the Cell Width of jTable Column. just you add TableCellWidth() methode below public void TableCellWidt...
For my Friend who want to customize the Cell Width of jTable Column.
just you add TableCellWidth() methode below
public void TableCellWidth(){
tbl_frm.getColumnModel().getColumn(0).setPreferredWidth(2);
tbl_frm.getColumnModel().getColumn(1).setPreferredWidth(100);
tbl_frm.getColumnModel().getColumn(2).setPreferredWidth(100);
tbl_frm.getColumnModel().getColumn(3).setPreferredWidth(10);
}
customize column you will with index, if on your jTable are 4 column mean it's index are 4 too from 0 to 3 then just you run it's methode from constructor or other,
Youn can download it's project here and if it's success you see different cell width every column (as you customize it), like the picture below..