-
Bug
-
Resolution: Fixed
-
P4
-
6-pool
-
b07
-
generic
-
generic
-
Not verified
Hello. I believe that there is an error in the showMessageDialog examples on the page below:
http://download.oracle.com/docs/cd/E17409_01/javase/tutorial/uiswing/components/dialog.html
The following code fails to compile:
//default title and icon
JOptionPane.showMessageDialog(frame,
"Eggs are not supposed to be green.",
"Message");
According to the javadocs, JOptionPane.showMessageDialog accepts 2 or 4-5 parameters. The example above lists 3.
http://download.oracle.com/docs/cd/E17409_01/javase/tutorial/uiswing/components/dialog.html
The following code fails to compile:
//default title and icon
JOptionPane.showMessageDialog(frame,
"Eggs are not supposed to be green.",
"Message");
According to the javadocs, JOptionPane.showMessageDialog accepts 2 or 4-5 parameters. The example above lists 3.