Skip to content

Commit

Permalink
prevent reordering of columns in account entries table
Browse files Browse the repository at this point in the history
  • Loading branch information
j-dimension committed Aug 1, 2024
1 parent 4fb006b commit 52476e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1936,7 +1936,7 @@
</Property>
<Property name="showGrid" type="boolean" value="false"/>
<Property name="tableHeader" type="javax.swing.table.JTableHeader" editor="org.netbeans.modules.form.editors2.JTableHeaderEditor">
<TableHeader reorderingAllowed="true" resizingAllowed="true"/>
<TableHeader reorderingAllowed="false" resizingAllowed="true"/>
</Property>
</Properties>
<Events>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2999,6 +2999,7 @@ public boolean isCellEditable(int rowIndex, int columnIndex) {
}
});
tblAccountEntries.setShowGrid(false);
tblAccountEntries.getTableHeader().setReorderingAllowed(false);
tblAccountEntries.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
tblAccountEntriesMouseClicked(evt);
Expand Down

0 comments on commit 52476e6

Please sign in to comment.