view.getContainer().repaint();
view.getJComponent().repaint();
            public void itemStateChanged(ItemEvent event) {                Constrainer c;                if (toggleGridButton.isSelected()) {                    c = new GridConstrainer(10,10);                } else {                    c = new GridConstrainer(1,1);                }                view.setConstrainer(c);                view.getContainer().repaint();            }