It seems to me like you’ve hit a bug in the JDK since the error seems to come from Swing classes.
Options:
-
Define the property
java.util.Arrays.useLegacyMergeSortastrue. Either using in your code the lineSystem.setProperty("java.util.Arrays.useLegacyMergeSort", "true");before any Swing code. As the first line in the
mainmethod should work.Or adding
-Djava.util.Arrays.useLegacyMergeSort=trueto your starting options (in the console, or in the project properties in an IDE, Ant script, etc.)
-
Upgrade your JDK and see if the problem goes away
- Downgrade to Java 6