public void notifyProgress(ProgressEvent event) { task.setCurrent(event.getCurrentProgress()); if (event.getCurrentProgress() > task.getLengthOfTask()) { task.setDone(true); } task.setStateMessage( props.getProperty("convert.text") + " " + event.getCurrentProgress() + props.getProperty("from.text") + " " + task.getLengthOfTask()); }
public void stop() { super.stop(); exchanger.setStopped(true); MessagePanes.showInfoDialog( LoanMemberDataExchangeScreen.this, props.getProperty("stopped.text"), getLocale()); }