Several utility functions and classes for Swing-based desktop application.