Class MainWindow

All Implemented Interfaces:
ImageObserver, MenuContainer, PropertyChangeListener, Serializable, EventListener, Accessible, RootPaneContainer, WindowConstants, ClockListener

public class MainWindow extends JFrame implements PropertyChangeListener, ClockListener
Main window of the Rachota application.
See Also:
  • Constructor Details

    • MainWindow

      public MainWindow() throws Exception
      Creates new application main window.
      Throws:
      Exception - Exception thrown when some I/O problems occur while loading settings or diary files.
  • Method Details

    • main

      public static void main(String[] args) throws Exception
      Main method called when application is started.
      Parameters:
      args - Command line arguments passed from operating system.
      Throws:
      Exception - Exception thrown when some I/O problems occur while loading settings or diary files.
    • getFont

      public Font getFont()
      Returns font that should be used for all widgets in this component based on the language preferences specified by user.
      Specified by:
      getFont in interface MenuContainer
      Overrides:
      getFont in class Component
      Returns:
      Font to be used in this component.
    • propertyChange

      public void propertyChange(PropertyChangeEvent evt)
      Method called when some property of task was changed.
      Specified by:
      propertyChange in interface PropertyChangeListener
      Parameters:
      evt - Event describing what was changed.
    • tick

      public void tick()
      Description copied from interface: ClockListener
      Method called when one clock tick is over.
      Specified by:
      tick in interface ClockListener