@Override
public void tableChanged(TableModelEvent e) {
int i;
for (i = 0; i < table.getRowCount(); ++i) {
TableCellRenderer renderer = table.getCellRenderer(0, 0);
Component component = table.prepareRenderer(renderer, 0, 0);
height = Math.max(height, (component.getPreferredSize()).height);
}
table.setRowHeight(height);
}
Where'd you find all the related class files and methods? I want to know where on the internet you can find this things.
--- Update ---
Does the above method need a mouseListener too? Such ass addMouseListener. In the methods that are used for this one specific file. Making a table in a Java Container.