Field OK_CANCEL_OPTION
Field type: int
Member of: javax.swing.JOptionPane
[api documentation ] [ main menu]

Examples of how the element is used (one line per example):
[add your own example]

1 JOptionPane.OK_CANCEL_OPTION,
2 JOptionPane.OK_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE);
3 JOptionPane.OK_CANCEL_OPTION);
4 int close = JOptionPane.showConfirmDialog(c, "Close XML Content File ?", "Close XML Content", JOptionPane.OK_CANCEL_OPTION);
5 JOptionPane.PLAIN_MESSAGE, JOptionPane.OK_CANCEL_OPTION);
6 if (JOptionPane.showConfirmDialog(parentFrame, getLoginObjects(), title, JOptionPane.OK_CANCEL_OPTION) == JOptionPane.OK_OPTION) {
7 "choose one", JOptionPane.OK_CANCEL_OPTION) == JOptionPane.CANCEL_OPTION) return;
8 OptionPane.OK_CANCEL_OPTION,
9 JOptionPane.OK_CANCEL_OPTION,
10 JOptionPane.OK_CANCEL_OPTION,
11 JOptionPane.OK_CANCEL_OPTION,
12 JOptionPane.OK_CANCEL_OPTION, null);
13 JOptionPane.OK_CANCEL_OPTION);
14 int result = JOptionPane.showConfirmDialog(this, b, "Select setting", JOptionPane.OK_CANCEL_OPTION);
15 optionPane = new JOptionPane(createInputPanel(), JOptionPane.PLAIN_MESSAGE, JOptionPane.OK_CANCEL_OPTION);
16 "Confirm overwrite", JOptionPane.OK_CANCEL_OPTION, JOptionPane.QUESTION_MESSAGE);
17 JOptionPane.OK_CANCEL_OPTION,
18 JOptionPane.OK_CANCEL_OPTION,
19 JOptionPane.OK_CANCEL_OPTION
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.