Helper utilities for Java and Swing classes