Skip to content

Commit

Permalink
added default row sorter. close #2216
Browse files Browse the repository at this point in the history
  • Loading branch information
j-dimension committed Dec 5, 2023
1 parent 9f5a785 commit 24e101b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
<SubComponents>
<Component class="javax.swing.JTable" name="tblResult">
<Properties>
<Property name="autoCreateRowSorter" type="boolean" value="true"/>
<Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.editors2.TableModelEditor">
<Table columnCount="4" rowCount="4">
<Column editable="true" title="Title 1" type="java.lang.Object"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -727,6 +727,7 @@ public void actionPerformed(java.awt.event.ActionEvent evt) {
}
});

tblResult.setAutoCreateRowSorter(true);
tblResult.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null, null, null, null},
Expand Down

0 comments on commit 24e101b

Please sign in to comment.