Swing event adapters and utilities.