public static int showInternalConfirmDialog (Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon)

Brings up an internal dialog panel with a specified icon, where the number of choices is determined by the optionType parameter. The messageType parameter is primarily used to supply a default icon from the look and feel.

Parameters:
parentComponent    determines the Frame in which the dialog is displayed; if null, or if the parentComponent has no Frame, a default Frame is used
message    the object to display in the dialog; a Component object is rendered as a Component; a String object is rendered as a string; other objects are converted to a String using the toString method
title    the title string for the dialog
optionType    an integer designating the options available on the dialog: YES_NO_OPTION, or YES_NO_CANCEL_OPTION.
messageType    an integer designating the kind of message this is, primarily used to determine the icon from the pluggable Look and Feel: ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE
icon    the icon to display in the dialog

Returns:  an integer indicating the option selected by the user