public JOptionPane (Object message, int messageType)

Creates an instance of JOptionPane to display a message with the specified message type and the default options,

Parameters:
message    the Object to display
messageType    the type of message to be displayed: ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE