public static int showCustomQuestionMessageBox(
      final Component parent,
      final String description,
      final String title,
      final JButton[] buttons,
      final JButton defaultButton) {
    return JOptionPane.showOptionDialog(
        parent,
        description,
        title,
        JOptionPane.DEFAULT_OPTION,
        JOptionPane.QUESTION_MESSAGE,
        null,
        buttons,
        defaultButton);
  }
Checks whether a <code>Component</code> is iconified. Always returns <code>false</code> on
<code>Component</code>s that are not descendants of <code>Frame</code>.

@param c the <code>Component</code> to check
@return <code>true</code> if <code>c</code> is non-null and a descendant of <code>Frame</code>
    and <code>c</code> is currently iconified, <code>false</code> otherwise.
java/zylib/src/main/java/com/google/security/zynamics/zylib/gui/CMessageBox.java