Skip to content

Instantly share code, notes, and snippets.

@GrennKren
Created June 29, 2024 18:07
Show Gist options
  • Save GrennKren/7ae4ed71f931b1424be78e3619c7f717 to your computer and use it in GitHub Desktop.
Save GrennKren/7ae4ed71f931b1424be78e3619c7f717 to your computer and use it in GitHub Desktop.
All the Challenges I Faced in Java Netbeans
1) I set up JTable with setAutoCreateRowSorter(true) so that all tables can be sorted by clicking on the column headers. However, I want to exclude some tables from this, but when I try using table.setAutoCreateRowSorter(false), it doesn't work at all.
Solution:
Disable the table header with table.getTableHeader().setEnabled(false);
2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment