Class DateTimePicker

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class DateTimePicker extends JPanel
Widget for selecting dates and times
Author:
IDV Development Team
See Also:
  • Constructor Details

    • DateTimePicker

      public DateTimePicker()
      Default ctor
    • DateTimePicker

      public DateTimePicker(Date date)
      Create a DateTimePicker with the initial date.
      Parameters:
      date - initial date
    • DateTimePicker

      public DateTimePicker(Date date, boolean includeHours)
      Create a DateTimePicker with the initial date.
      Parameters:
      date - initial date
      includeHours - true to have an hour picker
  • Method Details

    • setDefaultTimeZone

      public static void setDefaultTimeZone(TimeZone timeZone)
      Set the default time zone for all instances
      Parameters:
      timeZone - the time zone
    • getDefaultTimeZone

      public static TimeZone getDefaultTimeZone()
      Get the default time zone
      Returns:
      the default time zone
    • getDate

      public Date getDate()
      Get the Date that has been set
      Returns:
      the date
    • setDate

      public void setDate(Date d)
      Set the Date.
      Parameters:
      d - the new Date