set java.util.Arrays.useLegacyMergeSort to true due to Java 7 bug with
Swing.