version 1.2, 2004/01/15 12:38:19
|
version 1.3, 2004/02/18 13:25:24
|
Line 334 public class TableComponent extends JPan
|
Line 334 public class TableComponent extends JPan
|
} |
} |
public void sizeToFit(int windowWidth, int windowHeight) |
public void sizeToFit(int windowWidth, int windowHeight) |
{ |
{ |
table.setAutoResizeMode(table.AUTO_RESIZE_LAST_COLUMN); |
//table.setAutoResizeMode(table.AUTO_RESIZE_LAST_COLUMN); |
|
|
TableColumnModel model = table.getColumnModel(); |
TableColumnModel model = table.getColumnModel(); |
Dimension d2 = getPreferredSize(); |
Dimension d2 = getPreferredSize(); |