Static and raw fixes to JDK 8 AWT component