Title: Message
Hi All,
 
Following is my JTable code. When I maximize the frame window all the column gets resized, whereas I am specifying AUTO_RESIZE_LAST_COLUMN. Is there anything I am missing.
 
class LogMessageTable extends JTable {
 
  public LogMessageTable(LogMessageTableModel logMessageTableModel) {
   super((TableModel) logMessageTableModel);
 
   setAutoResizeMode(JTable.AUTO_RESIZE_LAST_COLUMN);
 
   TableColumn column = getColumnModel().getColumn(0);
   column.setPreferredWidth(160);
 
   column = getColumnModel().getColumn(1);
   column.setPreferredWidth(50);
 
   column = getColumnModel().getColumn(2);
   column.setPreferredWidth(300);
  }
 }
 
Thanks & Regards
Bhushan Bhangale
Sr. Software Engineer
Fusion Infotech India Private Ltd.
Ph. no. - 1-212-641-6932 (O)
 


"The information in this e-mail, and any attachment therein, is

confidential and for use by the addressee only. If you are not the

intended recipient, please return the e-mail to the sender and delete

it from your computer. Although The Bank of New York attempts to

sweep e-mail and attachments for viruses, it does not guarantee that

either are virus-free and accepts no liability for any damage sustained

as a result of viruses."


Reply via email to