Class CalendarCalcFrame

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

class CalendarCalcFrame extends Frame implements ActionListener
A Frame is a top-level window with a title. The default layout for a frame is BorderLayout. The CalendarCalcFrame class defines the window layout of MultiCalendarDemo.
  • Field Details

  • Constructor Details

    • CalendarCalcFrame

      public CalendarCalcFrame(DemoApplet applet)
      Constructs a new CalendarCalcFrame that is initially invisible.
  • Method Details

    • init

      public void init()
      Initializes the applet. You never need to call this directly, it is called automatically by the system once the applet is created.
    • addWithFont

      void addWithFont(Container container, Component foo, Font font)
    • start

      public void start()
      Called to start the applet. You never need to call this method directly, it is called when the applet's document is visited.
    • buildGUI

      public void buildGUI()
    • setFormatFromPattern

      public void setFormatFromPattern()
      This function is called when users change the pattern text.
    • textChanged

      public void textChanged(int index)
      This function is called when it is necessary to parse the time string in one of the formatted date fields
    • millisFormat

      public void millisFormat()
      This function is called when it is necessary to format the time in the "Millis" text field.
    • patternTextChanged

      public void patternTextChanged()
      This function is called when users change the pattern text.
    • cityChanged

      public void cityChanged()
      This function is called when users select a new representative city.
    • dateFieldChanged

      public void dateFieldChanged(boolean isUp)
      This function is called when users select a new time field to add or roll its value.
    • errorText

      public void errorText(String s)
      Print out the error message while debugging this program.
    • actionPerformed

      public void actionPerformed(ActionEvent evt)
      Called if an action occurs in the CalendarCalcFrame object.
      Specified by:
      actionPerformed in interface ActionListener
    • processKeyEvent

      protected void processKeyEvent(KeyEvent evt)
      Handles the event. Returns true if the event is handled and should not be passed to the parent of this component. The default event handler calls some helper methods to make life easier on the programmer.
      Overrides:
      processKeyEvent in class Component
    • processWindowEvent

      protected void processWindowEvent(WindowEvent evt)
      Overrides:
      processWindowEvent in class Window
    • makeIslamic

      private static final Calendar makeIslamic(boolean civil)