Class ApplyPromoCodeGUI

All Implemented Interfaces:
ActionListener, ImageObserver, MenuContainer, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants

public class ApplyPromoCodeGUI extends JFrame implements ActionListener
The ApplyPromoCodeGUI class represents a GUI window for applying a promotional code to a booking.
See Also:
  • Constructor Details

    • ApplyPromoCodeGUI

      public ApplyPromoCodeGUI(MainWindow mainWindow)
      Constructs an ApplyPromoCodeGUI object.
      Parameters:
      mainWindow - The main window of the application
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent ae)
      Handles the action events triggered by the buttons in the window.
      Specified by:
      actionPerformed in interface ActionListener
      Parameters:
      ae - The action event