Simple Example (original) (raw)
Subsections
JPenExample.javashows how to listen pen events over a component and print them on the standard output.
Running the Example on Linux
- Launch a bash shell and make shure that you have the following files in the current directory:
jpen-2.jar
andlibjpen-2.so
. These files are contained in the JPen libraryZIP archive.- The compiled JPenExample.classexample file.
- Run the following commands:
$ export LD_LIBRARY_PATH=.
$ java -cp jpen-2.jar:. JPenExample
Running the Example on Windows
- Prepare a directory with the following files:
jpen-2.jar
andjpen-2.dll
. These files are contained in the JPen libraryZIP archive.- The compiled JPenExample.classexample file.
- Open a Command Prompt, go to the directory created in the previous step, and run:
java -cp jpen-2.jar;. JPenExample
Copyright � 2007--2014 JPen - This document is licensed under the GNU FDL - latex2html/150301
Navigation icons are Copyrighted � 1998 by Dean S. Jones