Metagnostic
home

JNIPort for Dolphin Smalltalk

Overview

Contents

Players

Layers

Examples

Configuration

InFAQ

Changes

Licence


Back to Goodies

JNIPort Examples

This documentation comes with a few examples of using JNIPort in its various modes. In an ideal world I would have provided many more examples, covering much more ground; but life is short, time is limited, I have only so much patience…

The overview has one very simple example.

The walkthrough is an example of installing and configuring JNIPort.

There are two complete examples of using JNIPort with Java's API for manipulating ZIP files. One uses ghost classes, or wrapper classes generated by the Wrapper Wizard (the code is the same in either case). The other goes through exactly the same steps, but uses the lower-level interfaces in 'CU Java Base' (the middle layer of JNIPort) instead.

Here is a complete example of using ghost classes to create and display a Swing window.

Here is a small example of using Java callbacks, including Swing callbacks and events.


Copyright © Chris Uppal, 2003-2005

Java, JNI (probably), JVM (possibly), and God knows what else, are trademarks of Sun Microsystems, Inc.