Package Components
Class ConfirmationBox
- java.lang.Object
-
- Components.ConfirmationBox
-
public final class ConfirmationBox extends java.lang.Object
Utility class that is used to create confirmations boxes
-
-
Field Summary
Fields Modifier and Type Field Description private static boolean
answer
-
Constructor Summary
Constructors Modifier Constructor Description private
ConfirmationBox()
Private constructor to hinder the creation of the utility class
-
Method Summary
Modifier and Type Method Description static boolean
display(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
-
-