ValidationInfo () { if (!isValidCoordinateSelected()) { return new ValidationInfo(JavaUiBundle.message("error.message.please.enter.valid.coordinate.discover.it.or.select.one.from.the.list"), myCombobox); } else if (myDownloadToCheckBox.isSelected()) { final File dir = new File(myDirectoryField.getText()); if (!dir.exists() && !dir.mkdirs() || !dir.isDirectory()) { return new ValidationInfo(JavaUiBundle.message("error.message.please.enter.valid.library.files.path"), myDirectoryField.getTextField()); } } return super.doValidate(); }