private boolean readFileOrShowError(String file, JTextComponent target) {
        File source = new File(file);
        if (source.exists()) {
            try {
                target.setText(FileUtils.readFileToString(source));
                target.setEnabled(true);
                target.requestFocus();
                return true;
            } catch (IOException ex) {
                JOptionPane.showMessageDialog(this, "The file could not be read: " + ex.getLocalizedMessage(), "Error", JOptionPane.ERROR_MESSAGE);
                target.setEnabled(false);
            }
        } else {
            target.setText("");
            target.setEnabled(true);
            target.requestFocus();
        }

        return false;
    }