import javax.swing.*; import java.awt.*; import java.awt.event.*; class EcouteBouton implements ActionListener { MonPanel monPa; SwingDemo sdem; public EcouteBouton(MonPanel monPan, SwingDemo sd) { monPa = monPan; sdem = sd ; } public void actionPerformed(ActionEvent ev) { Integer aa; Integer bb; Integer cc; Integer dd;Integer ee; aa = (Integer) sdem.modelA.getValue(); bb = (Integer) sdem.modelB.getValue(); cc = (Integer) sdem.modelC.getValue(); dd = (Integer) sdem.modelD.getValue(); ee = (Integer) sdem.modelE.getValue(); int a = aa.intValue(); int b = bb.intValue(); int c = cc.intValue(); int d = dd.intValue(); int e = ee.intValue(); monPa.redessinerGraphe(a,b,c,d,e); } }