Utilities to work with Java Swing