Thread: List Viewer
View Single Post
  #3 (permalink)  
Old May 27th, 2005, 11:03 PM
javapda javapda is offline
Registered User
 
Join Date: May 2005
Location: Tucson, AZ, USA.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default



Perhaps something like the following would suffice:



public class OptionPane {

    public static String showInputDialog(Shell parentShell, String dialogTitle, String dialogMessage, Object initialValue) {
        boolean answer = MessageDialog.openQuestion(parentShell,dialogTitle ,dialogMessage);
        String result = null;
        if ( answer ) {
            result = (String)initialValue;
        }
        return result;
    }

}



Reply With Quote