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 command:
netrexxc -run spectrum(if on OS/2, use
netrexxc -runpm spectrumso OS/2 will know this is a windowed application).
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(if on OS/2, use
javapm Spectrumso OS/2 will know this is a windowed application).
Note that you need the capital letter in this case, as the java (and javapm) commands are case-sensitive.
[ NetRexx home page. | IBM home page | Search | Contact IBM | Help | © | tm ]