table.setValueAt(l, k, ContextPane.NAME); table.setValueAt(Boolean.FALSE, k, ContextPane.BOOLEAN);
table.setValueAt(l, k, ContextDialog.NAME); table.setValueAt(Boolean.FALSE, k, ContextDialog.BOOLEAN);
    private void buildTable(List toSelect, String name)    {        table = new TableComponent(toSelect.size(), 3);        JPanel p;        ColoredButton button;        int w = table.getColumnModel().getColumn(2).getPreferredWidth();        int h = table.getRowHeight();        Dimension d = new Dimension(Math.min(w, h)-3, Math.min(w, h)-3);        Iterator i = toSelect.iterator();        int j, k;        k = 0;        Integer l;        while (i.hasNext()) {            l = (Integer) i.next();            table.setValueAt(l, k, ContextPane.NAME);            table.setValueAt(Boolean.FALSE, k, ContextPane.BOOLEAN);            j = k%MODULO;            button = getButton(defaultColors[j]);            manager.attachButtonListener(button, k);            p = buildComponentPanel(button, d);            table.setValueAt(p, k, ContextPane.BUTTON);            k++;        }        TableSorter sorter = new TableSorter(table.getModel());        table.setModel(sorter);        sorter.addMouseListenerToHeaderInTable(table);        sorter.sortByColumn(0);        setTableHeader(name);    }