A little Swing wrap-up

These are some old changes in the Swing contrib library that wrap up a few loose endings (javadoc warnings, slightly inconsistent behavior for `KEY_TYPED` events, an additional helper for computing relative mouse motion).

I updated this to work with the current master (and fixed a few warnings concerning unused imports and double semicolons). I also checked whether this needs some variance generalizations, but it seems that it doesn't.