Class DateChooser

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

public class DateChooser
extends JDialog
This class provides a simple date chooser.
Version:
$Id: DateChooser.java,v 1.1 2009/07/28 15:25:52 lennart Exp $
Author:
Lennart Martens
See Also:
Serialized Form
  • Constructor Details

    • DateChooser

      public DateChooser()
      Empty default constructor
    • DateChooser

      public DateChooser​(JFrame aParent)
      Creates a new DataChooser object.
      Parameters:
      aParent - the JFrame parent
    • DateChooser

      public DateChooser​(JFrame aParent, Calendar aSelectedCalendar)
      This constructor takes the parent JFRame for this dialog, as well as a reference parameter for the selected date.
      Parameters:
      aParent - the parent frame
      aSelectedCalendar - the calendar
  • Method Details

    • getSelectedDate

      public Calendar getSelectedDate()
      This method returns a Calendar set at the selected date, or 'null' if no date was selected.
      Returns:
      Calendar set at the selected date.
    • main

      public static void main​(String[] args)
      Creates and opens a new DateChooser dialog.
      Parameters:
      args - the arguments