Fix the NEXT button. Proper reset.

This commit is contained in:
Joe Ho 2019-05-08 16:32:15 -04:00
parent 253ce2893d
commit cdf36b5ca7
2 changed files with 4 additions and 6 deletions

View File

@ -91,8 +91,7 @@ public class LogicalImagerDSProcessor implements DataSourceProcessor {
*/ */
@Override @Override
public JPanel getPanel() { public JPanel getPanel() {
configPanel.readSettings(); configPanel.reset();
configPanel.select();
return configPanel; return configPanel;
} }

View File

@ -409,8 +409,10 @@ public class LogicalImagerPanel extends JPanel implements DocumentListener {
public void reset() { public void reset() {
//reset the UI elements to default //reset the UI elements to default
choosenImagePath = null;
driveList.setListData(EMPTY_LIST_DATA); driveList.setListData(EMPTY_LIST_DATA);
messageLabel.setText(""); clearImageTable();
messageLabel.setText(Bundle.LogicalImagerPanel_messageLabel_clickScanOrBrowse());
} }
/** /**
@ -428,9 +430,6 @@ public class LogicalImagerPanel extends JPanel implements DocumentListener {
public void readSettings() { public void readSettings() {
} }
/**
* Set the focus to the pathTextField.
*/
public void select() { public void select() {
} }