private void adjustColumnSize(){
  int width=0;
  for (int row=0; row < table.getRowCount(); row++) {
    TableCellRenderer renderer=table.getCellRenderer(row,1);
    Component comp=table.prepareRenderer(renderer,row,1);
    width=Math.max(comp.getPreferredSize().width,width);
  }
  setColumnWidth(1,width,width,width);
}

private void adjustColumnSize ( ) { int width = 0 ; for ( int row = 0 ; row < table . getRowCount ( ) ; row ++ ) { TableCellRenderer renderer = table . getCellRenderer ( row , 1 ) ; Component comp = table . prepareRenderer ( renderer , row , 1 ) ; width = Math . max ( comp . getPreferredSize ( ) . width , width ) ; } setColumnWidth ( 1 , width , width , width ) ; }
adjust the width of the time column to fit the current times .
