Set advance values has confirm message

This commit is contained in:
Jindra Petřík
2016-09-17 17:46:27 +02:00
parent 42eda53a62
commit 6e74ff5951
4 changed files with 13 additions and 4 deletions

View File

@@ -605,7 +605,9 @@ public class FontPanel extends JPanel {
}
private void buttonSetAdvanceValuesActionPerformed(ActionEvent evt) {
fontTag.setAdvanceValues(((FontFace) fontFaceSelection.getSelectedItem()).font);
if (View.showConfirmDialog(null, AppStrings.translate("message.font.setadvancevalues"), AppStrings.translate("message.warning"), JOptionPane.OK_CANCEL_OPTION, JOptionPane.WARNING_MESSAGE, Configuration.showSetAdvanceValuesMessage, JOptionPane.OK_OPTION) == JOptionPane.OK_OPTION) {
fontTag.setAdvanceValues(((FontFace) fontFaceSelection.getSelectedItem()).font);
}
}
private void formComponentResized(ComponentEvent evt) {