Package Components
Class ConfirmationBox
- java.lang.Object
-
- Components.ConfirmationBox
-
public final class ConfirmationBox extends java.lang.ObjectUtility class that is used to create confirmations boxes
-
-
Field Summary
Fields Modifier and Type Field Description private static booleananswer
-
Constructor Summary
Constructors Modifier Constructor Description privateConfirmationBox()Private constructor to hinder the creation of the utility class
-
Method Summary
Modifier and Type Method Description static booleandisplay(int width, int height, java.lang.String title, java.lang.String message)Creates the confirmation box and displays it
-
-
-
Method Detail
-
display
public static boolean display(int width, int height, java.lang.String title, java.lang.String message)Creates the confirmation box and displays it- Parameters:
width- the width of the confirmation box, if less than 200 it is set to 200height- the height of the confirmation box, if less than 100 it is set to 100title- the title of the conformation boxmessage- the message that the confirmation box is going to display- Returns:
- boolean answer of the confirmation box
-
-