Date Selection with Java Date Picker

October 2004


Table of Contents

1. Introduction
1. What is Java Date Picker
2. How to Install
3. Requirements
4. What's New
4.1. Version 3.2 (October 12, 2004)
4.2. Version 3.1 (August 30, 2004)
4.3. Version 3.0 (June 18, 2004)
4.4. Version 2.4 (May 3, 2004)
4.5. Version 2.3.1 (April 15, 2004)
4.6. Version 2.3 (March 25, 2004)
4.7. Version 2.2 (February 23, 2004)
4.8. Version 2.1 (February 2, 2004)
4.9. Version 2.0.1 (January 21, 2004)
4.10. Version 2.0 (December 15, 2003)
5. More Help
2. How to Use the Components
1. Before We Begin
2. Using a JDateComponent
2.1. Selecting a Date
2.2. Allowing Empty Selection or Null Dates
2.3. Concepts: About Date Selection Models
2.4. Listening for Changes on Date Selection Model
2.5. Implementing a Date Selection Model
2.6. Listening for Action Events
2.7. Associating Date Actions with Key Strokes
2.8. Disabling the Component
3. Using a JDateEditComponent
3.1. Setting an Appropriate Date Format
3.2. Concepts: About Date Models
3.3. Listening for Changes on Date Model
3.4. Concepts: About Date Parsers
3.5. Implementing a Date Parser
3.6. Configuring Validation Behavior
4. Using the JMonth Component
4.1. Selecting Dates
4.2. Changing the Selection Type
4.3. Localizing the Component
4.4. Changing Colors and Font
4.5. Concepts: About Date Renderers
4.6. Implementing a Date Renderer
4.7. Configuring the Grid
4.8. Showing Week Numbers and Names
4.9. Concepts: About Month Models
4.10. Working with a Month Model (First Day of Week, Displayed Month)
4.11. Using the Keyboard
5. Using the JMonthView Component
5.1. Localizing the Component
5.2. Allowing Empty Selection
5.3. Showing the Today Button
5.4. Showing the Status Bar
6. Using the JDatePicker Component
6.1. Working with an Editable Date Picker
6.2. Changing the Background Color
6.3. Configuring the Drop Down Calendar
6.4. Localizing the Component
6.5. Using a Custom Look and Feel
6.6. Installing a Date Cell Editor for JTable
7. Using the JDateField Component
8. How to Create a Completely New Look for the Components
8.1. Concepts: About UI delegates
8.2. Per-Application vs Per-Component Customization
8.3. Creating a Custom UI Delegate
8.4. Example 1: Read-Only Calendar Title
8.5. Example 2: Spinner Calendar (Windows Date/Time Calendar)
8.6. Example 3: Image Scroll Buttons for the Calendar
A. License Agreement

List of Figures

2.1. Java Date Picker API Structure
2.2. A demo application for a JDateComponent
2.3. A demo application for a JDateEditComponent
2.4. A demo application for a JMonth component
2.5. A demo application for the JMonthView component
2.6. A demo application for the JDatePicker component

List of Tables

2.1. Keyboard Interface