Freely Available Code: Difference between revisions
No edit summary |
|||
Line 14: | Line 14: | ||
[[The Applet]] <br> | [[The Applet]] <br> | ||
[[The Code]] | [[The Code]] | ||
# '''BorderPanel''' class from Visual NetRexx. A panel that has a three dimensional border around it. The border can be raised or sunken, three-d or etched. <br> | # '''BorderPanel''' class from Visual NetRexx. A panel that has a three dimensional border around it. The border can be raised or sunken, three-d or etched. <br> | ||
Uses the [[DrawUtils]] class. <br> | Uses the [[DrawUtils]] class. <br> | ||
[[The Applet]] <br> | [[The Applet]] <br> | ||
[[The Code]] | [[The Code]] | ||
# '''MessageBox''' class from Visual NetRexx. <br> | # '''MessageBox''' class from Visual NetRexx. <br> | ||
Uses the [[MultiLineLabel]] class. <br> | Uses the [[MultiLineLabel]] class. <br> | ||
[[The Code]] | [[The Code]] | ||
# '''JDKConvertDir''' class to convert a directory with Javadoc generated html into NetRexx syntax. <br> | # '''JDKConvertDir''' class to convert a directory with Javadoc generated html into NetRexx syntax. <br> | ||
Run using '''java JDKConvertDir somedir''' output will go to the current directory. Uses the [[JDKDocConverter]] class. <br> | Run using '''java JDKConvertDir somedir''' output will go to the current directory. Uses the [[JDKDocConverter]] class. <br> | ||
[[The Code]] | [[The Code]] | ||
# '''JDKConvertFile''' class to convert a Javadoc generated file into NetRexx syntax. <br> | # '''JDKConvertFile''' class to convert a Javadoc generated file into NetRexx syntax. <br> | ||
Run using '''java JDKConvertFile somefile.html''' output will go to a file called temp.htm in the current directory. Uses the [[JDKDocConverter]] class <br> | Run using '''java JDKConvertFile somefile.html''' output will go to a file called temp.htm in the current directory. Uses the [[JDKDocConverter]] class <br> | ||
[[The Code]] | [[The Code]] | ||
# '''Toolbar''' from Visual NetRexx for Java <br> | # '''Toolbar''' from Visual NetRexx for Java <br> | ||
A toolbar class. Requires [[NonSizingGridLayout.Nrx]]. <br> | A toolbar class. Requires [[NonSizingGridLayout.Nrx]]. <br> | ||
[[The Code]] | [[The Code]] | ||
# '''ImageButton''' from Visual NetRexx for Java <br> | # '''ImageButton''' from Visual NetRexx for Java <br> | ||
An image button class. Requires [[GrayButton.Nrx]] and [[DrawUtils.Nrx]] classes. <br> | An image button class. Requires [[GrayButton.Nrx]] and [[DrawUtils.Nrx]] classes. <br> | ||
Line 41: | Line 35: | ||
[[The Code]] <br> | [[The Code]] <br> | ||
[[Test Code]] | [[Test Code]] | ||
# '''RxDate from [[Bob Keller]] ''' <br> | # '''RxDate from [[Bob Keller]] ''' <br> | ||
This is a class for date manipulation. <br> | This is a class for date manipulation. <br> | ||
[[The Code]] <br> | [[The Code]] <br> | ||
[[Test Code]] | [[Test Code]] | ||
# '''The ArcTest class from the JDK demos''' <br> | # '''The ArcTest class from the JDK demos''' <br> | ||
This class shows you how to draw lines and arcs. See /?/demo/ArcTest in your JDK (the ? means where your JDK is installed, i.e. java or javaos2 etc) <br> | This class shows you how to draw lines and arcs. See /?/demo/ArcTest in your JDK (the ? means where your JDK is installed, i.e. java or javaos2 etc) <br> | ||
[[The Code]] | [[The Code]] | ||
# '''The Animator class from the JDK demos''' <br> | # '''The Animator class from the JDK demos''' <br> | ||
This class is an all purpose animator. It has a soundtrack and sounds to play in the background, can repeat the animation indefinitely and many other things. See /?/demo/Animator in your JDK (the ? means where your JDK is installed, i.e. java or javaos2 etc) <br> | This class is an all purpose animator. It has a soundtrack and sounds to play in the background, can repeat the animation indefinitely and many other things. See /?/demo/Animator in your JDK (the ? means where your JDK is installed, i.e. java or javaos2 etc) <br> | ||
[[The Code]] | [[The Code]] | ||
# '''Syntax Highlighting for OS/2's EPM (NOT NETREXX CODE)''' <br> | # '''Syntax Highlighting for OS/2's EPM (NOT NETREXX CODE)''' <br> | ||
[[NetRexx Syntax File]] | [[NetRexx Syntax File]] | ||
# '''The Pipes class ported from 'Java in a Nutshell (Section 6)'''' <br> | # '''The Pipes class ported from 'Java in a Nutshell (Section 6)'''' <br> | ||
This class demonstrates using Filters to emulate 'piping' information between filters. <br> | This class demonstrates using Filters to emulate 'piping' information between filters. <br> | ||
Line 66: | Line 55: | ||
This class shows you how to use a CardLayout layout manager. It is a port from the book '''Java Programming for the Internet'''. <br> | This class shows you how to use a CardLayout layout manager. It is a port from the book '''Java Programming for the Internet'''. <br> | ||
[[The Applet]] <br> | [[The Applet]] <br> | ||
[[The Code]] | [[The Code]] '''The ThreadLister class ported from 'Java in a Nutshell (Section 9)'.''' <br> | ||
This class shows you how to list information about threads and thread groups. It is used by the [[AppletThreadLister]] class below. <br> | This class shows you how to list information about threads and thread groups. It is used by the [[AppletThreadLister]] class below. <br> | ||
[[The Code]] | [[The Code]] '''The Server class ported from 'Java in a Nutshell (Section 9)'.''' <br> | ||
This class uses sockets to provide a simple service to clients attached to a network.It is used by the [[Client]] class mentioned below. The service this server provides is reversing the string sent to it. <br> | This class uses sockets to provide a simple service to clients attached to a network.It is used by the [[Client]] class mentioned below. The service this server provides is reversing the string sent to it. <br> | ||
This class is an enhancement of the Server class from Java in a Nutshell Section 7. <br> | This class is an enhancement of the Server class from Java in a Nutshell Section 7. <br> | ||
Run using java Server, and then start the client. <br> | Run using java Server, and then start the client. <br> | ||
[[The Code]] | [[The Code]] '''The Client class ported from 'Java in a Nutshell (Section 9)'.''' <br> | ||
This is a class that is a client to the [[Server]] class. It shows how to use sockets in a text mode NetRexx program. <br> | This is a class that is a client to the [[Server]] class. It shows how to use sockets in a text mode NetRexx program. <br> | ||
Remember that the Server class must be started before running this Client. <br> | Remember that the Server class must be started before running this Client. <br> | ||
Run using java Client <br> | Run using java Client <br> | ||
This class is an enhancement of the Client class from Java in a Nutshell Section 7. <br> | This class is an enhancement of the Client class from Java in a Nutshell Section 7. <br> | ||
[[The Code]] | [[The Code]] '''The AppletThreadLister class ported from 'Java in a Nutshell (Section 9)'.''' <br> | ||
This class shows how to get information about threads and thread groups. <br> | This class shows how to get information about threads and thread groups. <br> | ||
[[The Applet]] <br> | [[The Applet]] <br> | ||
[[The Code]] | [[The Code]] '''The GrayButton class ported from 'Java in a Nutshell (Section 8)'.''' <br> | ||
This class shows how to filter an image to provide graphical effects. <br> | This class shows how to filter an image to provide graphical effects. <br> | ||
[[The Applet]] <br> | [[The Applet]] <br> | ||
[[The Code]] | [[The Code]] '''The Animator2 class ported from 'Java in a Nutshell (Section 8)'.''' <br> | ||
This class shows how to use threads and the MediaTracker class to allow the loading of multiple images over a network and track their progress, and possible failure. <br> | This class shows how to use threads and the MediaTracker class to allow the loading of multiple images over a network and track their progress, and possible failure. <br> | ||
[[The Applet]] <br> | [[The Applet]] <br> | ||
[[The Code]] | [[The Code]] '''The Smooth class ported from 'Java in a Nutshell (Section 8)'.''' <br> | ||
This class shows how to use threads and 'clipping rectangles' to achieve smooth animation. <br> | This class shows how to use threads and 'clipping rectangles' to achieve smooth animation. <br> | ||
[[The Applet]] <br> | [[The Applet]] <br> | ||
[[The Code]] | [[The Code]] '''The UDPSend class ported from 'Java in a Nutshell (Section 7)'.''' <br> | ||
This class uses datagrams to send a packet to another machine on the network.It is the partner of the [[UDPReceive]] class mentioned below. <br> | This class uses datagrams to send a packet to another machine on the network.It is the partner of the [[UDPReceive]] class mentioned below. <br> | ||
Run using java UDPSend hostname message, after starting UDPReceive. <br> | Run using java UDPSend hostname message, after starting UDPReceive. <br> | ||
[[The Code]] | [[The Code]] '''The UDPReceive class ported from 'Java in a Nutshell (Section 7)'.''' <br> | ||
This class uses datagrams to receive a packet from another machine on the network.It is the partner of the [[UDPSend]] class mentioned below. <br> | This class uses datagrams to receive a packet from another machine on the network.It is the partner of the [[UDPSend]] class mentioned below. <br> | ||
Run using java UDPReceive, and then start UDPSend. <br> | Run using java UDPReceive, and then start UDPSend. <br> | ||
[[The Code]] | [[The Code]] '''The Server class ported from 'Java in a Nutshell (Section 7)'.''' <br> | ||
This class uses sockets to provide a simple service to clients attached to a network.It is used by the [[Client]] class mentioned below. The service this server provides is reversing the string sent to it. It is also used by the [[AppletClient]] class. <br> | This class uses sockets to provide a simple service to clients attached to a network.It is used by the [[Client]] class mentioned below. The service this server provides is reversing the string sent to it. It is also used by the [[AppletClient]] class. <br> | ||
Run using java Server, and then start one of the clients. <br> | Run using java Server, and then start one of the clients. <br> | ||
[[The Code]] | [[The Code]] '''The GetURLInfo class ported from 'Java in a Nutshell (Section 7)'.''' <br> | ||
This is a class that shows how to query information about URLs using NetRexx. <br> | This is a class that shows how to query information about URLs using NetRexx. <br> | ||
Run using java GetURLInfo http://www.multitask.com.au/netrexx/fac/FirstApplet.Nrx <br> | Run using java GetURLInfo http://www.multitask.com.au/netrexx/fac/FirstApplet.Nrx <br> | ||
[[The Code]] | [[The Code]] '''The FetchTest class ported from 'Java in a Nutshell (Section 7)'.''' <br> | ||
This is a class that shows how to use the [[Fetch]] class. <br> | This is a class that shows how to use the [[Fetch]] class. <br> | ||
Run using javapm FetchTest http://www.multitask.com.au/netrexx/fac/FirstApplet.Nrx <br> | Run using javapm FetchTest http://www.multitask.com.au/netrexx/fac/FirstApplet.Nrx <br> | ||
[[The Code]] | [[The Code]] '''The FetchImageTest class ported from 'Java in a Nutshell (Section 7)'.''' <br> | ||
This is a class that shows how to use the [[Fetch]] class. <br> | This is a class that shows how to use the [[Fetch]] class. <br> | ||
Run using javapm FetchImageTest http://www.multitask.com.au/multitsk.gif <br> | Run using javapm FetchImageTest http://www.multitask.com.au/multitsk.gif <br> | ||
[[The Code]] | [[The Code]] '''The Fetch class ported from 'Java in a Nutshell (Section 7)'.''' <br> | ||
This is a class that shows how to use the URL class' getContent method. <br> | This is a class that shows how to use the URL class' getContent method. <br> | ||
Don't run this class - it's a helper class only. <br> | Don't run this class - it's a helper class only. <br> | ||
[[The Code]] | [[The Code]] '''The Client class ported from 'Java in a Nutshell (Section 7)'.''' <br> | ||
This is a class that is a client to the [[Server]] class. It shows how to use sockets in a text mode java program. <br> | This is a class that is a client to the [[Server]] class. It shows how to use sockets in a text mode java program. <br> | ||
Remember that the Server class must be started before running this Client. <br> | Remember that the Server class must be started before running this Client. <br> | ||
Run using java Client <br> | Run using java Client <br> | ||
[[The Code]] | [[The Code]] '''The AppletClient class ported from 'Java in a Nutshell (Section 7)'.''' <br> | ||
This is a class that is a client to the [[Server]] class. It shows how to use sockets in an applet. <br> | This is a class that is a client to the [[Server]] class. It shows how to use sockets in an applet. <br> | ||
Run locally using the applet viewer. <br> | Run locally using the applet viewer. <br> | ||
[[The Code]] | [[The Code]] '''The GrepInputStream class ported from 'Java in a Nutshell (Section 6)'.''' <br> | ||
This is a class that shows how to write a class to filter text from a stream. <br> | This is a class that shows how to write a class to filter text from a stream. <br> | ||
This class is used by [[Grep]]. <br> | This class is used by [[Grep]]. <br> | ||
[[The Code]] | [[The Code]] '''The Grep class ported from 'Java in a Nutshell (Section 6)'.''' <br> | ||
This is a class that shows how to use a filter class to select text from a stream. <br> | This is a class that shows how to use a filter class to select text from a stream. <br> | ||
Run using java Grep substring filename <br> | Run using java Grep substring filename <br> | ||
[[The Code]] | [[The Code]] '''The FileViewer class ported from 'Java in a Nutshell (Section 6)'.''' <br> | ||
This is a class that shows how to load a file into a text area. This class is also used by [[The Code]] '''The FileLister class ported from 'Java in a Nutshell (Section 6)'.''' <br> | This is a class that shows how to load a file into a text area. This class is also used by [[The Code]] '''The FileLister class ported from 'Java in a Nutshell (Section 6)'.''' <br> | ||
This is a class that shows java's input output capabilities, in a graphical application. <br> | This is a class that shows java's input output capabilities, in a graphical application. <br> | ||
Run using javapm FileLister <br> | Run using javapm FileLister <br> | ||
[[The Code]] | [[The Code]] '''The FileCopy class ported from 'Java in a Nutshell (Section 6)'.''' <br> | ||
This is a class that shows java's input output capabilities, and some of the methods you can use to access and control files. <br> | This is a class that shows java's input output capabilities, and some of the methods you can use to access and control files. <br> | ||
Run using java FileCopy file1 file2 <br> | Run using java FileCopy file1 file2 <br> | ||
[[The Code]] | [[The Code]] '''The YesNoDialog class ported from 'Java in a Nutshell (Section 5)'.''' <br> | ||
This is a custom dialog class for use in applets and AWT applications. It is used in the '''AllEvents''' class. <br> | This is a custom dialog class for use in applets and AWT applications. It is used in the '''AllEvents''' class. <br> | ||
[[The Code]] | [[The Code]] '''The ScrollableScribble class ported from 'Java in a Nutshell (Section 5)'.''' <br> | ||
This is a custom control class for use in applets and AWT applications. It is used in the '''AllEvents''' and '''AllComponents''' classes. <br> | This is a custom control class for use in applets and AWT applications. It is used in the '''AllEvents''' and '''AllComponents''' classes. <br> | ||
[[The Code]] | [[The Code]] '''The ReallyQuitDialog class ported from 'Java in a Nutshell (Section 5)'.''' <br> | ||
This is a custom dialog class for use in applets and AWT applications. <br> | This is a custom dialog class for use in applets and AWT applications. <br> | ||
[[The Code]] | [[The Code]] '''The MultiLineLabel class ported from 'Java in a Nutshell (Section 5)'.''' <br> | ||
This is a custom component class for use in applets and AWT applications. <br> | This is a custom component class for use in applets and AWT applications. <br> | ||
[[The Code]] | [[The Code]] '''The InfoDialog class ported from 'Java in a Nutshell (Section 5)'.''' <br> | ||
Run this class using javapm. '''It will not close''' under the OS/2 JDK 1.0.1. <br> | Run this class using javapm. '''It will not close''' under the OS/2 JDK 1.0.1. <br> | ||
[[The Code]] | [[The Code]] '''The AllEvents class ported from 'Java in a Nutshell (Section 5)'.''' <br> | ||
Run this class using javapm. <br> | Run this class using javapm. <br> | ||
[[The Code]] | [[The Code]] '''The AllComponents class ported from 'Java in a Nutshell (Section 5)'.''' <br> | ||
Run this class using javapm. '''It will not close''' under the OS/2 JDK 1.0.1. <br> | Run this class using javapm. '''It will not close''' under the OS/2 JDK 1.0.1. <br> | ||
[[The Code]] | [[The Code]] '''The StandaloneScribble class ported from 'Java in a Nutshell (Section 4)'.''' <br> | ||
Run this class using javapm. <br> | Run this class using javapm. <br> | ||
[[The Code]] | [[The Code]] '''The SecondApplet class ported from 'Java in a Nutshell (Section 4)'.''' <br> | ||
[[The Applet]] <br> | [[The Applet]] <br> | ||
[[The Code]] | [[The Code]] '''The ImageMap class ported from 'Java in a Nutshell (Section 4)'.''' <br> | ||
[[The Applet]] <br> | [[The Applet]] <br> | ||
[[The Code]] | [[The Code]] '''The FirstApplet class ported from 'Java in a Nutshell (Section 4)'.''' <br> | ||
[[The Applet]] <br> | [[The Applet]] <br> | ||
[[The Code]] | [[The Code]] '''The EventTester class ported from 'Java in a Nutshell (Section 4)'.''' <br> | ||
[[The Applet]] <br> | [[The Applet]] <br> | ||
[[The Code]] | [[The Code]] '''The ColorScribble class ported from 'Java in a Nutshell (Section 4)'.''' <br> | ||
[[The Applet]] <br> | [[The Applet]] <br> | ||
[[The Code]] | [[The Code]] '''The ClearableScribble class ported from 'Java in a Nutshell (Section 4)'.''' <br> | ||
[[The Applet]] <br> | [[The Applet]] <br> | ||
[[The Code]] | [[The Code]] '''The AudioAnimator class ported from 'Java in a Nutshell (Section 4)'.''' <br> | ||
[[The Applet]] <br> | [[The Applet]] <br> | ||
[[The Code]] | [[The Code]] '''The Animator class ported from 'Java in a Nutshell (Section 4)'.''' <br> | ||
[[The Applet]] <br> | [[The Applet]] <br> | ||
[[The Code]] | [[The Code]] '''The Scribble applet ported from 'Java in a Nutshell (Section 4)'.''' <br> | ||
[[The Applet]] <br> | [[The Applet]] <br> | ||
[[The Code]] | [[The Code]] '''The throwtest class ported from 'Java in a Nutshell (Section 4)'.''' <br> | ||
Run using java. <br> | Run using java. <br> | ||
[[The Code]] | [[The Code]] '''A class I use to synchronise my laptop and network config.sys files.''' <br> | ||
Run using java mtc.config.Synch <br> | Run using java mtc.config.Synch <br> | ||
[[The Code]] | [[The Code]] '''A class I use to run native commands, which places output in a stem.''' <br> | ||
[[The Code]] | [[The Code]] | ||
<br> [[Image:lineeyes.gif|----------------------------------------------]] <br> | |||
[[ |
Revision as of 18:23, 18 January 2017
By Dion Gillard
This page is a collection of applets and classes written in NetRexx, complete with source code, for you to use freely. It is intended as a source of information on relating NetRexx to Java, as some of the samples here are ported from the book Java in a Nutshell by O'Reilly and Associates. I recommend the book strongly if you're looking to understand Java.
You can download the entire FAC source here.
Using the samples provided here, you can take the Java source and samples provided in JIAN, and learn how to write NetRexx code that uses Java classes. Some of the sample code provided can be run as an Applet within a Java-enabled Browswer, others must be run standalone using java, javapm or a Java Applet Reference in OS/2 Warp v4.0. If you're using a Java-enabled browser, you should be able to use the applets below if you have NetRexx available. If your browser can't run Java applets, use either the applet viewer that came with the JDK or one of the methods above.
Users of OS/2 v4.0 with Java support installed, using Netscape for OS/2, should be able to see the apps in the links provided. WebExplorer users of OS/2 v4.0 should try to drag the applet pages to their desktops.
- Notebook class from Visual NetRexx. A 'notebook' or 'tabbed dialog' class that lets you click on 'tabs' to show one of a number of mutually exculsive components.
Uses the DrawUtils class.
The Applet
The Code
- BorderPanel class from Visual NetRexx. A panel that has a three dimensional border around it. The border can be raised or sunken, three-d or etched.
Uses the DrawUtils class.
The Applet
The Code
- MessageBox class from Visual NetRexx.
Uses the MultiLineLabel class.
The Code
- JDKConvertDir class to convert a directory with Javadoc generated html into NetRexx syntax.
Run using java JDKConvertDir somedir output will go to the current directory. Uses the JDKDocConverter class.
The Code
- JDKConvertFile class to convert a Javadoc generated file into NetRexx syntax.
Run using java JDKConvertFile somefile.html output will go to a file called temp.htm in the current directory. Uses the JDKDocConverter class
The Code
- Toolbar from Visual NetRexx for Java
A toolbar class. Requires NonSizingGridLayout.Nrx.
The Code
- ImageButton from Visual NetRexx for Java
An image button class. Requires GrayButton.Nrx and DrawUtils.Nrx classes.
The Applet
The Code
Test Code
- RxDate from Bob Keller
This is a class for date manipulation.
The Code
Test Code
- The ArcTest class from the JDK demos
This class shows you how to draw lines and arcs. See /?/demo/ArcTest in your JDK (the ? means where your JDK is installed, i.e. java or javaos2 etc)
The Code
- The Animator class from the JDK demos
This class is an all purpose animator. It has a soundtrack and sounds to play in the background, can repeat the animation indefinitely and many other things. See /?/demo/Animator in your JDK (the ? means where your JDK is installed, i.e. java or javaos2 etc)
The Code
- Syntax Highlighting for OS/2's EPM (NOT NETREXX CODE)
- The Pipes class ported from 'Java in a Nutshell (Section 6)'
This class demonstrates using Filters to emulate 'piping' information between filters.
Run using java Pipes , e.g. java Pipes LANG c:\config.sys
Please note that the original java file was split into separate NetRexx files, as NetRexx only allows one public class per file. All these files are available here.
You will need NetRexx 0.86 or higher to compile the code. Many thanks to Mike Cowlishaw for fixing bugs in NetRexx and discussing/implementing suggestions.
The Code The LayoutCard class by Kai Schmidt
This class shows you how to use a CardLayout layout manager. It is a port from the book Java Programming for the Internet.
The Applet
The Code The ThreadLister class ported from 'Java in a Nutshell (Section 9)'.
This class shows you how to list information about threads and thread groups. It is used by the AppletThreadLister class below.
The Code The Server class ported from 'Java in a Nutshell (Section 9)'.
This class uses sockets to provide a simple service to clients attached to a network.It is used by the Client class mentioned below. The service this server provides is reversing the string sent to it.
This class is an enhancement of the Server class from Java in a Nutshell Section 7.
Run using java Server, and then start the client.
The Code The Client class ported from 'Java in a Nutshell (Section 9)'.
This is a class that is a client to the Server class. It shows how to use sockets in a text mode NetRexx program.
Remember that the Server class must be started before running this Client.
Run using java Client
This class is an enhancement of the Client class from Java in a Nutshell Section 7.
The Code The AppletThreadLister class ported from 'Java in a Nutshell (Section 9)'.
This class shows how to get information about threads and thread groups.
The Applet
The Code The GrayButton class ported from 'Java in a Nutshell (Section 8)'.
This class shows how to filter an image to provide graphical effects.
The Applet
The Code The Animator2 class ported from 'Java in a Nutshell (Section 8)'.
This class shows how to use threads and the MediaTracker class to allow the loading of multiple images over a network and track their progress, and possible failure.
The Applet
The Code The Smooth class ported from 'Java in a Nutshell (Section 8)'.
This class shows how to use threads and 'clipping rectangles' to achieve smooth animation.
The Applet
The Code The UDPSend class ported from 'Java in a Nutshell (Section 7)'.
This class uses datagrams to send a packet to another machine on the network.It is the partner of the UDPReceive class mentioned below.
Run using java UDPSend hostname message, after starting UDPReceive.
The Code The UDPReceive class ported from 'Java in a Nutshell (Section 7)'.
This class uses datagrams to receive a packet from another machine on the network.It is the partner of the UDPSend class mentioned below.
Run using java UDPReceive, and then start UDPSend.
The Code The Server class ported from 'Java in a Nutshell (Section 7)'.
This class uses sockets to provide a simple service to clients attached to a network.It is used by the Client class mentioned below. The service this server provides is reversing the string sent to it. It is also used by the AppletClient class.
Run using java Server, and then start one of the clients.
The Code The GetURLInfo class ported from 'Java in a Nutshell (Section 7)'.
This is a class that shows how to query information about URLs using NetRexx.
Run using java GetURLInfo http://www.multitask.com.au/netrexx/fac/FirstApplet.Nrx
The Code The FetchTest class ported from 'Java in a Nutshell (Section 7)'.
This is a class that shows how to use the Fetch class.
Run using javapm FetchTest http://www.multitask.com.au/netrexx/fac/FirstApplet.Nrx
The Code The FetchImageTest class ported from 'Java in a Nutshell (Section 7)'.
This is a class that shows how to use the Fetch class.
Run using javapm FetchImageTest http://www.multitask.com.au/multitsk.gif
The Code The Fetch class ported from 'Java in a Nutshell (Section 7)'.
This is a class that shows how to use the URL class' getContent method.
Don't run this class - it's a helper class only.
The Code The Client class ported from 'Java in a Nutshell (Section 7)'.
This is a class that is a client to the Server class. It shows how to use sockets in a text mode java program.
Remember that the Server class must be started before running this Client.
Run using java Client
The Code The AppletClient class ported from 'Java in a Nutshell (Section 7)'.
This is a class that is a client to the Server class. It shows how to use sockets in an applet.
Run locally using the applet viewer.
The Code The GrepInputStream class ported from 'Java in a Nutshell (Section 6)'.
This is a class that shows how to write a class to filter text from a stream.
This class is used by Grep.
The Code The Grep class ported from 'Java in a Nutshell (Section 6)'.
This is a class that shows how to use a filter class to select text from a stream.
Run using java Grep substring filename
The Code The FileViewer class ported from 'Java in a Nutshell (Section 6)'.
This is a class that shows how to load a file into a text area. This class is also used by The Code The FileLister class ported from 'Java in a Nutshell (Section 6)'.
This is a class that shows java's input output capabilities, in a graphical application.
Run using javapm FileLister
The Code The FileCopy class ported from 'Java in a Nutshell (Section 6)'.
This is a class that shows java's input output capabilities, and some of the methods you can use to access and control files.
Run using java FileCopy file1 file2
The Code The YesNoDialog class ported from 'Java in a Nutshell (Section 5)'.
This is a custom dialog class for use in applets and AWT applications. It is used in the AllEvents class.
The Code The ScrollableScribble class ported from 'Java in a Nutshell (Section 5)'.
This is a custom control class for use in applets and AWT applications. It is used in the AllEvents and AllComponents classes.
The Code The ReallyQuitDialog class ported from 'Java in a Nutshell (Section 5)'.
This is a custom dialog class for use in applets and AWT applications.
The Code The MultiLineLabel class ported from 'Java in a Nutshell (Section 5)'.
This is a custom component class for use in applets and AWT applications.
The Code The InfoDialog class ported from 'Java in a Nutshell (Section 5)'.
Run this class using javapm. It will not close under the OS/2 JDK 1.0.1.
The Code The AllEvents class ported from 'Java in a Nutshell (Section 5)'.
Run this class using javapm.
The Code The AllComponents class ported from 'Java in a Nutshell (Section 5)'.
Run this class using javapm. It will not close under the OS/2 JDK 1.0.1.
The Code The StandaloneScribble class ported from 'Java in a Nutshell (Section 4)'.
Run this class using javapm.
The Code The SecondApplet class ported from 'Java in a Nutshell (Section 4)'.
The Applet
The Code The ImageMap class ported from 'Java in a Nutshell (Section 4)'.
The Applet
The Code The FirstApplet class ported from 'Java in a Nutshell (Section 4)'.
The Applet
The Code The EventTester class ported from 'Java in a Nutshell (Section 4)'.
The Applet
The Code The ColorScribble class ported from 'Java in a Nutshell (Section 4)'.
The Applet
The Code The ClearableScribble class ported from 'Java in a Nutshell (Section 4)'.
The Applet
The Code The AudioAnimator class ported from 'Java in a Nutshell (Section 4)'.
The Applet
The Code The Animator class ported from 'Java in a Nutshell (Section 4)'.
The Applet
The Code The Scribble applet ported from 'Java in a Nutshell (Section 4)'.
The Applet
The Code The throwtest class ported from 'Java in a Nutshell (Section 4)'.
Run using java.
The Code A class I use to synchronise my laptop and network config.sys files.
Run using java mtc.config.Synch
The Code A class I use to run native commands, which places output in a stem.
The Code
----------------------------------------------