+ if (useCustomControlFontCheckBox.isSelected()) {
+ if (controlFontList.getSelectedItem() == null) {
+ JOptionPane.showMessageDialog(this, I18n.get("configurationDialog.error.noControlFontSelected.message"), I18n.get("configurationDialog.error.noControlFontSelected.title"), JOptionPane.ERROR_MESSAGE);
+ return;
+ }
+ }
+ if (useCustomUserFontCheckBox.isSelected()) {
+ if (userFontList.getSelectedItem() == null) {
+ JOptionPane.showMessageDialog(this, I18n.get("configurationDialog.error.noUserFontSelected.message"), I18n.get("configurationDialog.error.noUserFontSelected.title"), JOptionPane.ERROR_MESSAGE);
+ return;
+ }
+ }