Module hw06

Class VisitorDemoApp

java.lang.Object
visitorDemoExercises.basicVisitorDemo.controller.VisitorDemoApp

public class VisitorDemoApp extends Object
The controller for the Visitor Demo system. Also double-duties as an applet so that it can be used in a web page.
Author:
swong
  • Field Details

  • Constructor Details

    • VisitorDemoApp

      public VisitorDemoApp()
      No-parameter constructor used by web pages to bring the applet up.
    • VisitorDemoApp

      public VisitorDemoApp(int closeAction)
      The constructor for the class
      Parameters:
      closeAction - The window closing action. Is WindowConstants.HIDE_ON_CLOSE for applets and WindowConstants.EXIT_ON_CLOSE for applications
  • Method Details

    • start

      public void start()
      Starts the view
    • main

      public static void main(String[] args)
      Auto-generated main method to display this controller
      Parameters:
      args - Command line args.