+ 2
What are the four arguments for JOptionPane.showMessageDialog()?
can you elaborate it something in deep?
1 Resposta
+ 6
Did you already take a look at the javadoc?
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
title - the title string for the dialog
messageType - the type of message to be displayed: ERROR_MESSAGE, INFORMATION_MESSAGE,WARNING_MESSAGE, QUESTION_MESSAGE, orPLAIN_MESSAGE
The method is overloaded, so you don't need to pass all parameters....
See
https://docs.oracle.com/javase/7/docs/api/javax/swing/JOptionPane.html#showMessageDialog(java.awt.Component,%20java.lang.Object,%20java.lang.String,%20int)