cbOnTop.setSelected(optionsVO.isOnTop());
cbOnTopActionPerformed(null);
cbAutoOpen.setSelected(optionsVO.isAutoOpenOutput());
cbOutputNoAsk.setSelected(optionsVO.isOutputNoAsk());
//reset image operation param
ImageActionParamsVO paramsVO = AppUtil.retrieveOperParams();
if(paramsVO != null){
//reset image choose
if(paramsVO.getOutputFolder() != null){
outputFolder = paramsVO.getOutputFolder();
}
cbOverride.setSelected(paramsVO.isOverride());
//image export
sdQuality.setValue(paramsVO.getQuality());
tfQuality.setText(String.valueOf(sdQuality.getValue()));
sdSize.setValue(paramsVO.getResizeIndex());
javax.swing.JLabel lbSize = (javax.swing.JLabel)sdSize.getLabelTable().get(paramsVO.getResizeIndex());
tfSize.setText(lbSize.getText());
//corner round
cbApplyRound.setSelected(paramsVO.isApplyRound());
sdCornerSize.setValue(paramsVO.getCornerSize());
//exif
cbApplyExif.setSelected(paramsVO.isApplyExif());
UIUtil.retrieveButtonGroup(btgStyle, paramsVO.getExifStyle());
if(paramsVO.getExifFont() != null){
exifFont = paramsVO.getExifFont();
}
tfExifSign.setText(paramsVO.getSign());
cbExifCamera.setSelected(paramsVO.isAppendCamera());
cbExifApt.setSelected(paramsVO.isAppendApt());
cbExifDate.setSelected(paramsVO.isAppendDate());
cbExifExp.setSelected(paramsVO.isAppendExp());
cbExifFocal.setSelected(paramsVO.isAppendFocal());
cbExifIso.setSelected(paramsVO.isAppendIso());
//text watermark
cbApplyTextWm.setSelected(paramsVO.isApplyWatermarkText());
UIUtil.retrieveButtonGroup(btgWmStyle, paramsVO.getWatermarkTextStyle());
tfWmText.setText(paramsVO.getWatermarkText());
if(paramsVO.getWatermarkTextFont() != null){
wmTextFont = paramsVO.getWatermarkTextFont();
}
if(paramsVO.getWatermarkColor() != null){
wmTextColor = paramsVO.getWatermarkColor();
}
sdWmTextOpaque.setValue(paramsVO.getWatermarkTextAlpha());
}
if(paramsVO.getInputFiles() != null && paramsVO.getInputFiles().length > 0){
fcInput.setCurrentDirectory(paramsVO.getInputFiles()[0]);
}
//auto check update
if(AppUtil.isUpdateCheckNeed()){
doCheckUpdateAction(true);
AppUtil.rememberUpdateCheck();