SwingCalendar
Java library JAR file

Description: SwingCalendar provides a simple interface for invoking a Java Swing calendar dialog and includes the calendar panel class so you can easily imbed this panel in your own custom frames and dialogs. SwingCalendar doesn't require any additional JAR files or libraries and is only 12kb in size, making it ideal for web deployment.

Download SwingCalendar to try it out. (68 kb)

Javadocs

The main SwingCalendar classes are:
SwingCalendarDlg - to pop up a calendar dialog
SwingCalendarPanel - to imbed the calendar in your own JFrame or JDialog
View the javadocs

To Pay By Credit Card or eCheck ($25.00 U.S.)

 

Discounted multiple licenses are also available. Email jeff@SoftTechDesign.com for more information.

To Pay By Check

Make a check for $25.00 (U.S.) payable to
SoftTech Design, Inc.
9711 Kipling Street
Westminster, CO 80021

SwingCalendar Version History
Version 1.00 released on 3/31/2005
support for multiple look and feels
lightweight - only 12kb in size and doesn't require any other JAR libraries
support for multiple locales (see screenshots below)
JPanel sublcass (so you can imbed SwingCalendar in your own frames or dialogs)
JDialog class that allows you to "get" a date from the user with only a couple lines of code
complete javadocs
type "java -jar SwingCalendar.jar" to run the demo

 

SwingCalendar Screen Shots

SwingCalendar using the Windows look and feel in the English Locale

  

SwingCalendar using the cross-platform (Java) look and feel in the French Locale

  

SwingCalendar using the Windows look and feel in the Spanish Locale

  

SwingCalendar using the cross-platform (Java) look and feel in the German Locale

  

Sample Code Using SwingCalendar

   //get today's date and pass that date as the "initial" date to SwingCalendar
 GregorianCalendar cal = new GregorianCalendar();
 cal.setTime(new Date());
 int initMonth = cal.get(Calendar.MONTH);
 int initDate = cal.get(Calendar.DATE);
 int initYear = cal.get(Calendar.YEAR);
 SwingCalendarDlg dlg = new SwingCalendarDlg(this, "Choose Date", true, initMonth, initDate, initYear);
 dlg.show();
 System.out.println("The date selected is '" + dlg.getSelectedDate() + "'");


     
Website copyright © 2001-2006, SoftTech Design, Inc. All rights reserved worldwide.