Merge pull request #544 from adrianbroher/master

Code cleanup: Replace swing listener with adapters; Added SuppressWarnings for Swing based classes.