Reset offset in DataResult on new file selection

This commit is contained in:
Dick Fickling 2012-01-03 18:05:49 -05:00
parent 63846a6c74
commit e96a1da1cf
2 changed files with 4 additions and 0 deletions

View File

@ -297,6 +297,8 @@ public class DataContentViewerHex extends javax.swing.JPanel implements DataCont
@Override
public void resetComponent() {
// clear / reset the fields
currentOffset = 0;
currentPage = 1;
this.dataSource = null;
currentPageLabel.setText("");
totalPageLabel.setText("");

View File

@ -291,6 +291,8 @@ public class DataContentViewerString extends javax.swing.JPanel implements DataC
@Override
public void resetComponent() {
// clear / reset the fields
currentOffset = 0;
currentPage = 1;
this.dataSource = null;
currentPageLabel.setText("");
totalPageLabel.setText("");