JPopupCalendar Home


Java Swing Version

Introduction

Download / Installation

Quick Start

Customizing JPopupCalendar

Javadocs


SWT Version

Introduction

Download / Installation

Quick Start

Customizing JPopupCalendar

Javadocs

Project Page at sourceforge.net

Untitled Document

Installation (SWT Version)

To use the swt version of JPopupCalendar you first need the swt itself. You can either take it from the eclipse installation or download it from eclipse.org.

Installation :

  • Download a distribution from the sourceforge project page (.zip for Windows, .tar.gz for unix/linux). Make sure you get the JPopupCalendarSWT packages. The binary version (JPopupCalendarSWT-Vxx-xx.zip or JPopupCalendarSWT-Vxx-xx.tar.gz) contain the jar file, the javadocs and some samples. The full distributions (JPopupCalendarSWT-Vxx-xx_full.zip or JPopupCalendarSWT-Vxx-xx_full.tar.gz) contain the source files in addition to the files in the binary distribution.

    Alternatively get the source from cvs using
    cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/jpopupcalendar co jpopupcalendarswt

    To build it first set the swtdir and swtjar properties in build.xml to fit your installation and then build the jar files by typing ant in the root directory of the package.

    Note: When building JPopupCalendar/JPopupCalendarSWT in JDK5.0 using Borland make I've frequently encountered problems in methods that pass on arrays as parameter. These problems disappear when using javac instead of Borland make.

  • Extract the files to a location of your choice.
  • Add the JPopupCalendar.jar file to your project classpath. swt.jar should be there as well.
  • To run any of the examples in the samples directory you will need to edit the build.xml file there. Set the swtdir and swtjar properties to point to the root directory of your swt installation. This will provide the location of the platform specific swt libraries to the executables, e.g. in my case add the required
    javaw -Djava.library.path="C:\Java\SWT\swt-3.1" ...
    option. To build and run the provided examples type ant followed by the name of the sourcefile of the example, e.g.
    ant SimpleExample1