Net Libs Source CodeThere's nothing particularly proprietary in here, so feel free to browse through the source code. However, I would ask that you don't blatently steal it and call it your own. Thanks.
Some of the code uses techniques that are overkill for an applet as simple as Net Libs, but I wanted to use this as a way to test various concepts. Also note that the code was originally typed with 4-space tabs, but most web browsers use 8-space tabs, so some of code doesn't align right.
And, in case you're curious, I wrote an MPW script which scans the source code and inserts the appropriate HTML tags to highlight the comments and insert the header.
- Package: NetLibs
- NetLibs.java
The main class for NetLibs.- NetLibsCommand.java
Delegates commands and broadcasts to listeners.- NetLibsConst.java
Interface containing global constants.- CommandListener.java
Interface extending BensEventListener to listen for NetLibs commands.- StoryTemplate.java
Handles reading the story template, getting prompts and words, etc.- PromptWindow.java
The window that prompts the user for words.- Package: COM.bensoft.base
- BensEventListener.java
An empty interface which all listeners must extend.- BensEventMulticaster.java
Keeps track of listeners like JDK 1.1, but works with JDK 1.0.2.- BensUtils.java
Miscellaneous static utilities.- Package: COM.bensoft.widgets
- ImageCanvas.java
Simple iconic area.- ImageAnimator.java
Rotates through a serious of images for simple animation. Not currently used in NetLibs.- ProgressMeter.java
Progress meter (or "thermometer") at the bottom of the applet frame.