Method showOptionDialog(Component parentComponent, Object message, String title, int optionType, int messageType, Icon icon, Object[] options, Object initialValue)
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 retval = JOptionPane.showOptionDialog(mParent,
2 int option = JOptionPane.showOptionDialog(null,"Some changes have not been written to a configuration file. Close window?",
3 JOptionPane.showOptionDialog(
4 int n = JOptionPane.showOptionDialog(null, "The diagram exceeds the current page size. Select option?", "Printing Selection", JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[0]);
5 int confirm = JOptionPane.showOptionDialog (null, "Really Exit?",
6 JOptionPane.showOptionDialog(
7 int option=JOptionPane.showOptionDialog(null,Messages.resetWarning,"Warning",JOptionPane.DEFAULT_OPTION,JOptionPane.WARNING_MESSAGE,null,options,options[0]);
8 int res = JOptionPane.showOptionDialog(this, msg, title, type, style, null, options, options[0]);
9 JOptionPane.showOptionDialog(null, panel, "Add Application Server",
10 switch( JOptionPane.showOptionDialog(this,
11 if(JOptionPane.showOptionDialog(this, p,
12 int choice = JOptionPane.showOptionDialog(this, message, title,
13 int confirm = JOptionPane.showOptionDialog ( window,
14 int liOption = JOptionPane.showOptionDialog(null,lsActualError+"\n"+lMessage,"Caught in "+lClassName+"."+lMethodName+"() ",
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.