Skip to content

Commit 4df1bc4

Browse files
committed
6350025: API documentation for JOptionPane using deprecated methods.
Reviewed-by: jdv
1 parent efcdcc7 commit 4df1bc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/java.desktop/share/classes/javax/swing/JOptionPane.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@
272272
* JOptionPane pane = new JOptionPane(<i>arguments</i>);
273273
* pane.set<i>.Xxxx(...); // Configure</i>
274274
* JDialog dialog = pane.createDialog(<i>parentComponent, title</i>);
275-
* dialog.show();
275+
* dialog.setVisible(true);
276276
* Object selectedValue = pane.getValue();
277277
* if(selectedValue == null)
278278
* return CLOSED_OPTION;

0 commit comments

Comments
 (0)