Class AdjustTimeDialog

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

public class AdjustTimeDialog extends JDialog
Dialog for user friendly setting up start/end day time.
See Also:
  • Constructor Details

    • AdjustTimeDialog

      public AdjustTimeDialog(Frame parent, String title, Task task)
      Creates new dialog for time selection and presets hours and minutes
      Parameters:
      parent - Parent window that invoked this dialog.
      title - String that should be used as a title of this dialog.
      task - Source task whose time will be preset in the dialog.
    • AdjustTimeDialog

      public AdjustTimeDialog(Frame parent, String title, int hours, int minutes)
      Creates new dialog for time selection and presets hours and minutes
      Parameters:
      parent - Parent window that invoked this dialog.
      title - String that should be used as a title of this dialog.
      hours - Number of hours to be preset in the dialog.
      minutes - Number of minutes to be preset in the dialog.
    • AdjustTimeDialog

      public AdjustTimeDialog(Frame parent, String title)
      Creates new dialog for time selection.
      Parameters:
      parent - Parent window that invoked this dialog.
      title - String that should be used as a title of this dialog.
  • Method Details

    • 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.