@Override public void stateChanged(ChangeEvent e) { // on envoie un évènement au controller int value = spinner.getValue(); ClientRequest cr = new ClientRequest(); cr.setEvent(new EventChangementZoom(value)); MainController.getInstance().performRequest(cr); }
public GridToolBarPanel() { super(); setLayout(new MigLayout()); setName(GRIDTOOLBARPANELNAME); setSize(new Dimension(100, 300)); buildComponents(); ajoutActionSlider(); // ajoutActionButtonDraw(); MainController.getInstance().addView(this); setOpaque(false); this.addMouseListener(this); this.addMouseMotionListener(this); }