Class ControlPanel

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

public final class ControlPanel extends JFrame
The server control panel UI.
Version:
1.0
See Also:
  • Field Details

    • statusLabel

      protected JLabel statusLabel
      The status label.
    • startButton

      protected JButton startButton
      The start button.
    • stopButton

      protected JButton stopButton
      The start button.
    • logotype

      protected Image logotype
      The application logotype image.
  • Constructor Details

    • ControlPanel

      public ControlPanel(ServerApplication server)
      Creates a new control panel frame.
      Parameters:
      server - the server to control
  • Method Details

    • start

      public void start()
      Starts the server if it wasn't running.
    • stop

      public void stop()
      Stops the server if it was running.
    • update

      public void update()
      Updates the UI with the current server status.
    • about

      public void about()
      Displays the about dialog.
    • error

      public void error(String message)
      Displays the specified error message.
      Parameters:
      message - the error message to show
    • quit

      public void quit()
      Quits the application.