Skip to content

Commit 5eda396

Browse files
committed
JSTableUI fix for property change "model" with rowCount == 0
1 parent bbcaad1 commit 5eda396

5 files changed

Lines changed: 5 additions & 3 deletions

File tree

6 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20200321085805
1+
20200321133858
6 Bytes
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20200321085805
1+
20200321133858

sources/net.sf.j2s.java.core/src/swingjs/plaf/JSTableUI.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,9 @@ public void propertyChange(PropertyChangeEvent e) {
227227
if (sp != null) {
228228
sp.getVerticalScrollBar().setValue(0);
229229
}
230-
230+
if (table.getRowCount() == 0) {
231+
setHidden(true);
232+
}
231233
return;
232234
case "autoCreateRowSorter":
233235
case "rowSorter":

0 commit comments

Comments
 (0)