private static JComponent[] copy(JComponent[] c) {
        JComponent[] newArray = new JComponent[c.length];
        for (int a = 0; a < c.length; a++) {
            newArray[a] = c[a];
        }
        return newArray;
    }