소스 검색

Merge branch 'master' into 'master'

Master

See merge request yocj/g4b!11
ERTZSCHEID THEO 5 년 전
부모
커밋
b598f02d80
3개의 변경된 파일11개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      .idea/misc.xml
  2. 1 0
      jul.iml
  3. 9 0
      src/main/View.java

+ 1 - 1
.idea/misc.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project version="4">
-  <component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="11.0.3" project-jdk-type="JavaSDK">
+  <component name="ProjectRootManager" version="2" languageLevel="JDK_11" default="true" project-jdk-name="11" project-jdk-type="JavaSDK">
     <output url="file://$PROJECT_DIR$/out" />
   </component>
 </project>

+ 1 - 0
jul.iml

@@ -36,5 +36,6 @@
         <SOURCES />
       </library>
     </orderEntry>
+    <orderEntry type="library" name="weka1" level="project" />
   </component>
 </module>

+ 9 - 0
src/main/View.java

@@ -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++){