Thumbnail[] ts = new Thumbnail[thumbnailSet.size()]; thumbnailSet.toArray(ts); gm.assignGroups(ts);
    public void setGroupingMethod(GroupingMethod gm)    {        // TODO: reestablish groups, likely        if(gm != null)        {            this.groupingMethod = gm;            updateModelListeners();        }    }