|
|
@@ -41,6 +41,15 @@ public class View extends JFrame {
|
|
|
Weka.traitement(juls);
|
|
|
}
|
|
|
});
|
|
|
+ boutonReset.addActionListener(new ActionListener() {
|
|
|
+ @Override
|
|
|
+ public void actionPerformed(ActionEvent actionEvent) {
|
|
|
+ for (int i=0;i<panimg.getComponents().length;i++){
|
|
|
+ panimg.getComponents()[i].setBackground(Color.RED);
|
|
|
+ juls.get(i).setChoisi(false);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ });
|
|
|
|
|
|
panimg.setLayout(new GridLayout(5,4));
|
|
|
for (int i=0;i<20;i++){
|