Extra functionality for use with swing components