예제 #1
0
 @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);
 }
예제 #2
0
  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);
  }