private int showConfirmWarningMessage(String title, String message) {
    return JOptionPane.showConfirmDialog(mainWindow, new JLabel(message, JLabel.CENTER), title,
        JOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);
  }