Class ConfirmBox

java.lang.Object
no.ntnu.idatt1002.spendwise.home.ConfirmBox

public class ConfirmBox extends Object
A class that creates a window for the user to confirm an action.
  • Constructor Details

    • ConfirmBox

      public ConfirmBox()
  • Method Details

    • display

      public static boolean display(String title, String message)
      Creates a window with a title and a message.
      Parameters:
      title - The title of the window.
      message - The message to be displayed in the window.
      Returns:
      True if the user clicks yes, false if the user clicks no.