Skip to content

Instantly share code, notes, and snippets.

@btolfa
Forked from anonymous/gist:2923633
Created June 13, 2012 12:06
Show Gist options
  • Save btolfa/2923668 to your computer and use it in GitHub Desktop.
Save btolfa/2923668 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); // а здесь ее нет
System.out.println(i);
System.out.println(mainTable.getColumnModel().getColumnCount());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment