Package Components

Class 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
      • Methods inherited from class java.lang.Object

        clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • answer

        private static boolean answer
    • Constructor Detail

      • ConfirmationBox

        private ConfirmationBox()
        Private constructor to hinder the creation of the utility class
    • 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 200
        height - the height of the confirmation box, if less than 100 it is set to 100
        title - the title of the conformation box
        message - the message that the confirmation box is going to display
        Returns:
        boolean answer of the confirmation box