![]() |
Spectrum application |
This is a simple example of a stand-alone windowed application; when started, it displays a 'frame window' on the desktop and fills it with a spectrum of colors.
Here's the source, as a plain ASCII file.
To run the program, create or copy the 'Spectrum.nrx' file (note the first letter is a capital letter), and then enter the commands:
java COM.ibm.netrexx.process.NetRexxC Spectrum java Spectrum(if on OS/2, you can use the single command
netrexxc -run spectrumto do this.
This would:
If you would like to try it without compiling it first, here's the class file. Download this by clicking on the link, then change to the directory where you placed the class file and then run
java Spectrum
Note that you need the capital letter in this case, as the java (and javapm) commands are case-sensitive.
Note also that the Java runtime (e.g., from the Java Development Kit) must be installed.
[ NetRexx | IBM home page | Search | Contact IBM | Help | Legal ]
This page was created on 15 Apr 1997; it can be found from http://www2.hursley.ibm.com/netrexx/