AT&T Home | AT&T Labs | Research
AT&T Labs, Inc. - Research

The Yoix® Scripting Language

Home | What's New | Grammar | Documentation | Download | License | YChart | YDAT | YWAIT | Byzgraf | FAQs
showInputDialog (Object comp, String message [, String title [, Object selections [, Object type]]]) yoix.swing
 
Pops up a modal dialog that displays message, includes a component, like a JTextField that can be used for input, is positioned over comp, which should be an AWT or Swing component, or centered on your screen when comp is NULL, and returns a String that represents the user's input or NULL if there was no input. The optional title argument is used as the dialog's title when it is not NULL. The optional selections argument can be NULL, a String, or an Array of strings that are displayed by the dialog in a component that presents the selections to the user. The optional type argument should be ERROR_MESSAGE, INFORMATION_MESSAGE, PLAIN_MESSAGE, QUESTION_MESSAGE (the default), or WARNING_MESSAGE, which are integers that are defined in yoix.swing, or an Image that is displayed in the dialog instead of the default icon that is selected when type is an int.
 
 Return:   String
 
 See Also:   showConfirmDialog, showMessageDialog

 

Yoix is a registered trademark of AT&T Inc.