common utility classes that work under Swing Java 1.3+