Serialized Form

  • Package com.project.calculator

    • Class com.project.calculator.BaseUI

      class BaseUI extends JFrame implements Serializable
      • Serialized Fields

        • display
          JLabel display
          Label to display the current input or result of the calculator.
        • displayHolder
          JPanel displayHolder
          The main panel that holds the display and history labels.
        • HEIGHT
          int HEIGHT
          The height of the application window.
        • history
          JLabel history
          Label to display the calculation history.
        • PRIMARY_DARK_COLOR
          Color PRIMARY_DARK_COLOR
          The primary color used for the dark mode background.
        • PRIMARY_LIGHT_COLOR
          Color PRIMARY_LIGHT_COLOR
          The primary color used for the light mode background.
        • SECONDARY_DARK_COLOR
          Color SECONDARY_DARK_COLOR
          The secondary color used for the dark mode panel background.
        • SECONDARY_LIGHT_COLOR
          Color SECONDARY_LIGHT_COLOR
          The secondary color used for the light mode panel background.
        • WIDTH
          int WIDTH
          The width of the application window.
    • Class com.project.calculator.MainUI

      class MainUI extends JPanel implements Serializable
      • Serialized Fields

        • buttonLabel
          String[] buttonLabel
          Labels for the buttons, representing digits, operations, and functions.
        • buttons
          JButton[] buttons
          Array of buttons representing the calculator keys.
        • input
          StringBuilder input
          The current input being displayed on the calculator.

          It is updated as the user clicks buttons.

        • inputString
          String inputString
          The string representation of the current input.
        • result
          double result
          The result of the last calculation performed.