Class DateChooser

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

public class DateChooser extends JPanel implements ActionListener
This class represents a date chooser. The chooser allows an arbitrary date to be selected by presenting a calendar with day, month and year selectors. ORIGINAL CODE: Kiwi (PING Software Group)
See Also:
  • Constructor Details

    • DateChooser

      public DateChooser(LocalDate date)
      Construct a new DateChooser. The date for the chooser will be initialized to the current date.
  • Method Details

    • actionPerformed

      public void actionPerformed(ActionEvent evt)
      Handles events. This method is public as an implementation side-effect.
      Specified by:
      actionPerformed in interface ActionListener
    • getFirstDay

      public int getFirstDay()
      Returns:
      the first day of the selected month
    • getSelectedDate

      public LocalDate getSelectedDate()
      Returns:
      the current selected date (can be null)
    • setSelectedDate

      public void setSelectedDate(LocalDate selectedDate)
    • getDate

      public static LocalDate getDate(Container container, Component field, LocalDate date)