Mega Code Archive
The JOptionPane Message Type and Icon Arguments
ERROR_MESSAGE for displaying an error message
INFORMATION_MESSAGE for displaying an informational message
QUESTION_MESSAGE for displaying a query message
WARNING_MESSAGE for displaying a warning message
PLAIN_MESSAGE for displaying any other type of message