/** * Prints a request for a text input to the window. <br> * <b>Example:</b> {@code String name = FancyMessageBox.askForTextInput("What is your nickname?", * "Nicknames");} * * @param message the text in the FancyMessageBox * @param title the title of the FancyMessageBox * @return the user input as a string */ public static String askForTextInput(String message, String title) { return fancyMessageBox.askForTextInput(message, title); }
/** * Prints the message to the window. <br> * <b>Example:</b> {@code FancyMessageBox.showMessage("Girl programmers rule!","Just the Facts");} * * @param message the text in the FancyMessageBox * @param title the title of the FancyMessageBox * @param icon a file and path that has an image for the MessageBox */ public static void showMesage(String message, String title, ImageIcon icon) { fancyMessageBox.showMessage(message, title, icon); }
/** * Prints a request for a numerical input to the window. <br> * <b>Example:</b> {@code int cookies = FancyMessageBox.askForNumericalInput("How many cookies * would you like?", "Cookies");} * * @param message the text in the FancyMessageBox * @param title the title of the FancyMessageBox * @return the user input as a number */ public static int askForNumericalInput(String message, String title) { return fancyMessageBox.askForNumericalInput(message, title); }