JTable layerTable = new JTable(new LayerTableModel(myBrush));
layerTable = new JTable(new LayerTableModel(myBrush));
    private JPanel createCustomPanel() {        JPanel customPanel = new JPanel();                MiniMapViewer mmv = new MiniMapViewer();        if(myBrush instanceof CustomBrush) {            //mmv.setView(((CustomBrush)myBrush));        }                JScrollPane miniSp = new JScrollPane();        miniSp.getViewport().setView(mmv);        miniSp.setPreferredSize(new Dimension(100,100));        JButton bCreate = new JButton("Create...");        bCreate.addActionListener(this);        JButton bLoad = new JButton("Load...");        bLoad.addActionListener(this);        JTable layerTable = new JTable(new LayerTableModel(myBrush));        layerTable.getColumnModel().getColumn(0).setPreferredWidth(32);        layerTable.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);        layerTable.getSelectionModel().addListSelectionListener(this);                customPanel.setLayout(new GridBagLayout());        GridBagConstraints c = new GridBagConstraints();        c.anchor = GridBagConstraints.NORTH;        c.fill = GridBagConstraints.NONE;        c.weightx = 2; c.weighty = 2;        customPanel.add(miniSp, c);        c.weightx = 1; c.weighty = 1;        c.gridx=2;        customPanel.add(bCreate, c);        c.gridy=1;        customPanel.add(bLoad, c);        c.gridx=0; c.gridy=2;        customPanel.add(layerTable, c);                return customPanel;    }