Moved several swing related commands into the library.