Class Settings

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class Settings extends JPanel
Settings class represents the settings panel of the application. It allows users to change the theme of the application and log out.
See Also:
  • Field Details

    • gbLayout

      GridBagLayout gbLayout
      GridBagLayout object for layout management.
    • gbc

      GridBagConstraints object for layout management.
    • options

      JPanel options
      Panel for holding the options in the settings panel.
    • title

      JLabel title
      Label for the title of the settings panel.
    • themeLabel

      JLabel themeLabel
      Label for the theme selector.
    • themeSelector

      JComboBox<String> themeSelector
      JComboBox for selecting the theme of the application.
    • logOutBtn

      JButton logOutBtn
      Button to log out of the application.
    • themes

      String[] themes
      Array of available themes for the application.
  • Constructor Details

    • Settings

      Settings()
      Constructs a Settings object.
  • Method Details

    • changeTheme

      private void changeTheme(ItemEvent event)
      Change the theme of the application based on the user's selection. This method is triggered when the user selects a theme from the combo box.
      Parameters:
      event - the event triggered when the user selects a theme from the combo box
    • logOutBtnHandler

      private void logOutBtnHandler(ActionEvent event)
      Handles the log out button click event. Logs out the user and clear the session. This method is triggered when the user clicks the log out button.
      Parameters:
      event - the event triggered when the user clicks the log out button