Fixed exception thrown when a custom field is created as the first field. Caused by bug in JDK and suppressed by using legacy merge sort in java.util.Arrays.
Stopped resizeFrame() from setting frame size above screen resolution.