Logo Search packages:      
Sourcecode: octave-java version File versions  Download package

static String org::octave::JDialogBox::questdlg ( String  question,
String  title,
String[]  options 
) [inline, static]

Implements a simple questdlg with default text and caption. Not very useful.

questionString - the question to be presented
titleString - the caption
optionsString[] - 'str1', 'str2', 'str3', 'default'
String - the caption of the button pressed by the user

Definition at line 307 of file JDialogBox.java.

References genericdlg().

Referenced by main().

      JDialogBox d = new JDialogBox ();
      String s[] = new String[1];
      s[0] = question;
      d.genericdlg ( s, options, title, "on",
                     DLG_QUEST, null, null,
                     options[0], options[1], options[2] );
      return ( d.getResult () );

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index