Method showConfirmDialog(Component parentComponent, Object message, String title, int optionType, int messageType)
Return 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 int returnValue = JOptionPane.showConfirmDialog(this,
2 int result = JOptionPane.showConfirmDialog( this,
3 int ok = JOptionPane.showConfirmDialog(this,
4 int ok = JOptionPane.showConfirmDialog(this,
5 int result = JOptionPane.showConfirmDialog(this, "This file already exists, do you want to overwrite it?",
6 int result = JOptionPane.showConfirmDialog(this, "This file already exists, do you want to overwrite it?",
7 int result = JOptionPane.showConfirmDialog(frame, "No page without body admitted: delete also the page?",
8 JOptionPane.showConfirmDialog(
9 if(JOptionPane.showConfirmDialog(null,"Changes have not been saved. Close anyway (changes will be lost)?","Changes not saved", JOptionPane.YES_NO_OPTION,JOptionPane.WARNING_MESSAGE) == 0)
10 int result = JOptionPane.showConfirmDialog( this,
11 JOptionPane.showConfirmDialog( this,
12 int option = JOptionPane.showConfirmDialog(this.root,
13 int ret = JOptionPane.showConfirmDialog (fc,
14 int response = JOptionPane.showConfirmDialog(this, editor.getCustomEditor(),
15 int res = JOptionPane.showConfirmDialog(this,
16 JOptionPane.showConfirmDialog(null, "Save failed : " + e.getMessage(), "Error",
17 if( JOptionPane.showConfirmDialog( this, Msg.get("chatdlg.query.dirsend.content", f.getName()),
18 JOptionPane.showConfirmDialog(this, res.getString("ErrorSave"), res.getString("CompiereServerSetup"),
19 JOptionPane.showConfirmDialog(null, pf = new JPasswordField(),
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.