com.j4th Utilities

Submitted by Syscrusher on Wed, 2005/06/08 - 08:54.

Fourth Corner Systems is pleased to present this collection of Open Source Java software, free for your use according to the terms of the GNU Public License.

Please take the time to read the GPL before downloading; you will find that its terms are quite liberal but there are still some responsibilities borne by you, the user of this free software.

All of the packages published here are in the com.j4th domain, even though the web site is 4th.com. This is because most Java compilers will not accept a package name component beginning with a number. The j4th.com domain is also registered to Fourth Corner Systems.

Package or Program

(Release Date and Status)

Description
com.j4th.util

(2000.03.07 GA)

This is a basic set of utility classes, and is a dependency for all of the other packages. Classes include, among others StringHelper (a String function library), ColorHelper (for working with the java.awt.Color class), WordWrapper (for inserting "smart" line breaks in text), and Properties2 (a slight extension of java.util.Properties).
com.j4th.util.shell

(2000.03.07 GA)

C programmers are probably familiar with the getopt() function, used for parsing command-line arguments passed to a program. This package takes the basic concept of getopt() and extends it greatly, adding such features as the ability to emulate syntax conventions of DOS or POSIX, generation of neatly-formatted help in either text or HTML format, validation of argument type and quantity using Java classes, and more.

Requires com.j4th.util

MenuMaker

(2000.02.08 GA)

MenuMaker is a little Java application (not an applet!) which allows a web designer to create a "tree" style menu. Unlike the many applets available on the Internet, MenuMaker actually generates static HTML pages for the menu, which means that its menus can be viewed by browsers which do not support Java, or in which the user has turned off Java applets.

This class is pseudo-deprecated. It is actually the very first Java application I ever wrote, and its JDK 1.0.2 lineage is showing its age. I'm working on a new version that uses the Java Foundation Classes (JFC), also known as Swing, and adds a lot of new functionality. In the meantime, I am only minimally maintaining this old version. The new version will import files created with this one, though, so you are safe in using this old version until the new one is available. Just be aware that the interface is a little clunky.

Requires com.j4th.util

com.j4th.applet

(2000.03.07 GA)

This package consists of several Applet subclasses, each one subclassing the one before and adding more features (so that you, the developer, can choose the appropriate tradeoff between features and size). AbstractApplet adds only minimally to java.applet.Applet, giving it (for example) the feature of automatically setting its background and foreground colors from attributes of the <PARAM> tag in the HTML. The ConsoleApplet class adds a popup console window, controllable by the applet, that behaves like standard output or error streams for a command-line program. DockableApplet adds the ability for the entire applet to actually leap out of the web page into its own standalone window, and to leap back again, all under control of the user or the programmer.
com.j4th.io

(2000.03.07 GA)

Currently includes a Base64Encoder class and a Base64OutputStream class that uses it.

Downloading and Installing

All of the classes are contained in the current j4th.jar file. To use them, just download and extract this file into a directory that is in your CLASSPATH. If you wish, you can also put the JAR file itself in your CLASSPATH rather than extracting it. By the way, if you use Netscape you may need to hold down your SHIFT key while clicking on the download link.

For your convenience, the javadoc documentation is available in a pre-generated ZIP file. You don't have to download the javadoc files, but can generate them yourself from the contents of the JAR file if you prefer.

AttachmentSize
j4th.jar190.71 KB
j4th-docs.zip108.66 KB
( categories: | )