BSF4ooRexx Samples (Using Java Classes from Rexx)
Hint: if you wish to look at the ooRexx code with syntax highlighting, then you can
use the free and open-source editor "[g]vim"
, which is available for practically
all platforms and can be downloaded from its homepage at
http://www.vim.org/.
- . <directory> (List of this directory)
- Display all of this directory's files and directories.
- apache_bsf_samples <directory>
- Original examples from Apache's BSF 2.x distributions, augmented with Rexx variants.
- classicRexxSamples <directory>
- Demonstrates how to use the external BSF functions without taking advantage of ooRexx.
- DateRgf.rxj
- ooRexx program to test access to the class
org.oorexx.datergf.DateTimeRGF
, which is contained
in the "bsf-rexx-engine.jar"
archive; the documentation of the BSF4ooRexx
Date/Time classes can be found in the archive "docs_bsf4rexx.zip"
.
You may want to try this link to the documentation as well:
http://wi.wu-wien.ac.at/rgf/rexx/bsf4oorexx/current/docs/docs.bsf4oorexx/
- DateRgfSample.rxj
- Demonstrates the usage of the routine
BSF.wrapStaticFields
for accessing
Java constants. This public routine gets defined by the ooRexx package BSF.CLS
.
datergf_docs.zip
- Archive that contains the HTML documentation of the supplied Java package
org.oorexx.datergf
.
- demoJavaArrays.rxj
- Demonstrate how to create and use Java array objects.
- DOM <directory>
- Scripts that demonstrate how to use Java's "DOM (Document Object Model)" classes to
process XML files.
- EuroCalcJava.rxj
- Using Java's "awt (abstract window toolkit)" classes to create a portable GUI for
converting Euro amounts to/from any of the original Euro currencies.
- getFileInfo.rxj
- Demonstrate using the Java class
java.io.File
to gain information about
files/directories.
- GetJavaSystemProperties.rxj
- List all Java system properties of your Java installation. Loads explicitly the
Java class
java.lang.System
and interrogates it.
- GetJavaSystemProperties1.rxj
- List all Java system properties of your Java installation. Uses the existing
reference to the Java class
java.lang.System
, which gets set up
by the ooRexx package BSF.CLS
and stored to an ooRexx directory
that is always available by its environment symbol .BSF4Rexx
.
- GetJavaSystemProperties2.rxj
- Same as
GetJavaSystemProperties.rxj
but lists the properties
alphabetically sorted in ascending order by employing the Java class
java.util.TreeSet
.
- GetJavaSystemProperties3.rxj
- Same as
GetJavaSystemProperties.rxj
but uses the methods
store
and storeToXML
of the Java class
java.lang.System
to print all properties to the standard
output (console).
- Greetings.rxj
- Creates a window with a choice-object and two text-fields and buttons;
if the ok-button gets pressed then another window pops up and displays what
was chosen and entered by the user.
- HelloWorld.rxj
- Creates a window with a button which allows to close the window.
- Java <directory>
- Java programs that demonstrate how one can invoke ooRexx from Java and how easy this is.
There are examples that interact with ooRexx objects from Java, including ooRexx condition
objects.
- JavaVersion.rxj
- Fetch the system property
"java.version"
and display its value.
- JPrintFile.rxj
- Allows to pick a file that then gets printed (user is allowed to pick the printer as well).
Java "swing" version.
- LeePeedin <directory>
- Scripts created by Lee Peedin for a presentation on one of the International Rexx Symposiums
organized by the Rexx Language Association
(cf. http://www.RexxLA.org). Stresses GUI programming
and Java menus.
- OOo <directory>
- Examples for driving OpenOffice.org applications.
- PrintFile.rxj
- Allows to pick a file that then gets printed (user is allowed to pick the printer as well).
Java "awt" version.
- RegexTestHarness.rxj
- Allows for interactive experimenting with Java's regular expressions; the Java tutorial
on regular expressions can be found at:
http://java.sun.com/docs/books/tutorial/essential/regex/index.html.
- ReneJansen <directory>
- René Jansen's examples for demonstrating the usage of "XSLT;" and
"JDBC (Java Database Connectivity)" to access relational databases.
- RunJavaClass.rxj
- Calls the static void main() method of the given Java class, supplying optionally
arguments given on the command line to Rexx (by Jack Woehr).
- SAX <directory>
- Scripts that demonstrate how to use Java's "SAX (Simple API for XML)" classes to
process XML files.
- ShootOut.rxj
- Creates a window with a choice-object and two text-fields and buttons.
Entering a question (indicated by a trailing question mark) will give
a "magic-ball" answer. Originally developed at an International
Rexx Symposium to meet the "Magic 8-Ball" challenge set forth
by Chip Davis.
- ShootOut2.rxj
- Extends
ShootOut.rxj
above with the ability to edit the
answer file after answering successfully a password popup (correct password:
"hey").
- ShowCount.rxj
- Creates a little resizable window with a push button to count and reveal
the number of times the button got pressed.
- ShowSize.rxj
- Creates a little resizable window with a push button to reveal the actual
size; adds EventListeners in order for Rexx to be notified, if a button
gets pressed.
- swt_snippet108.rxj
- Transcription of the Eclipse GUI class library
"swt (Standard Widget Toolkit)"
Java example
"Snippet108.java"
to ooRexx.
Attention! This example needs Eclipse's
swt library (see section entitled
"Releases"/"Stable"
) installed on your system and
the environment variable
CLASSPATH
point to the swt.jar
library!
Rony G. Flatscher, 2010-08-22, Wien/Vienna, Austria, Europe