jdk/src/share/classes/javax/swing/JOptionPane.java
changeset 24161 29dc629ec823
parent 24147 204ae465851d
parent 23715 54ae9dd9df73
child 24983 f5a6e2ed8c7d
equal deleted inserted replaced
24160:b813b1ee855d 24161:29dc629ec823
   258  * Object[] possibleValues = { "First", "Second", "Third" };<br>
   258  * Object[] possibleValues = { "First", "Second", "Third" };<br>
   259  * Object selectedValue = JOptionPane.showInputDialog(null,
   259  * Object selectedValue = JOptionPane.showInputDialog(null,
   260  *             "Choose one", "Input",
   260  *             "Choose one", "Input",
   261  *             JOptionPane.INFORMATION_MESSAGE, null,
   261  *             JOptionPane.INFORMATION_MESSAGE, null,
   262  *             possibleValues, possibleValues[0]);
   262  *             possibleValues, possibleValues[0]);
   263  * </pre><p>
   263  * </pre>
   264  * </dl>
   264  * </dl>
   265  * <b>Direct Use:</b><br>
   265  * <b>Direct Use:</b><br>
   266  * To create and use an <code>JOptionPane</code> directly, the
   266  * To create and use an <code>JOptionPane</code> directly, the
   267  * standard pattern is roughly as follows:
   267  * standard pattern is roughly as follows:
   268  * <pre>
   268  * <pre>