Skip to content

Instantly share code, notes, and snippets.

Created June 13, 2012 11:55
Show Gist options
  • Save anonymous/2923633 to your computer and use it in GitHub Desktop.
Save anonymous/2923633 to your computer and use it in GitHub Desktop.
private static void resizeTable() {
mainTable.getColumnModel().getColumn(0).setPreferredWidth(15); // здесь ошибка
for (int i = 0; i < mainTable.getColumnModel().getColumnCount(); i++) {
mainTable.getColumnModel().getColumn(i).setPreferredWidth(15); // а здесь ее нет
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment