Me n My Programming

If Only I Have TIme

Marama Code 114 ~ How to create input dialog

This is how you create an input dialog:

InputDialog dialog = new InputDialog(sh, title, msg, "", null); // new input dialog
 if(dialog.open() == IStatus.OK){ // open dialog and wait for return status code.            
   String data = dialog.getValue(); // fetch the value entered by the user.
 } else {
   // do something
 }
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Information

This entry was posted on September 15, 2010 by in Life on Marama, Uncategorized.
%d bloggers like this: