Fixed some (not all) compiler warnings due to JDK7 generics in Swing