'tame' Swing examples

The 'tame' Swing examples

Use the links at the top of the page for the launcher applet, the 'Tame codes' screenshots and the download link for the zip file of all the Java sources. The Java source of individual classes can be viewed by selecting the class name from the drop-down list.

Nobuo Tamemasa coded these excellent examples of UI's in the first releases of Swing, back in Java 1.1 around 1998/99. Some of the methods are deprecated now, but the codes are presented (largely) as is in any case.

Download

This download includes the source, images and build file for the tame codes.

Changes to the 2007 release

  • By Java 1.6, 'enum' had become a keyword, changed to enumeration.
  • GroupableTableHeaderUI had a recursive NPE. Yiquan Hu submitted a fix by implementing the getRenderer() method.
  • Changed to use getResource to find images
    • AnimatedIconTableExample

Changes to the 2004 release include;

  • Package
    1. The very long package statements have been replaced by the single tame package
    2. import statements changed to match.
  • Source
    1. Commented out small section of code in MultiComponentTable2 to get a clean compile.
    2. One example that was throwing a recursize exception has been altered to throw a single NullPointerException.
  • JavaDocs
    1. Each public class now has a JavaDoc comment
    2. @author tag added
    3. Blank line/s before class removed
    4. Problem examples now have a comment at the top of the source (in the JavaDoc comment), usually a stacktrace.

Please note that the distribution license of the Tame Swing codes is unclear, which is unfortunate since Nobuo has vanished into thin air. The author of this page began a thread speculatively titled Tame Swing codes - LGPL? in attempts to ascertain the correct license, but that has not resulted in anything definitive yet.

If you have further information on the license under which the Tame Swing codes was originally distributed, or how I might contact Nobuo, please either post it on the thread on comp.lang.java.gui, or contact the author of this page.

© 2003-2010 by Andrew Thompson. All rights reserved.
Web hosting compliments of Java Web Hosting.
Java Web Hosting