From 4cd3e7a480f0e3393ebd6f1992e1ee7d91ec2aeb Mon Sep 17 00:00:00 2001 From: "Peukert, Dr. Hagen" <hagen.peukert@uni-hamburg.de> Date: Mon, 28 Feb 2022 18:11:23 +0100 Subject: [PATCH] Bug fixed -- capitals in corpus name --- Morphochron/src/GUI_mainMenu.java | 28 ++++++++++++++-------------- Morphochron/src/Init.java | 12 ++++++------ Morphochron/src/InitTest.java | 12 ------------ 3 files changed, 20 insertions(+), 32 deletions(-) delete mode 100644 Morphochron/src/InitTest.java diff --git a/Morphochron/src/GUI_mainMenu.java b/Morphochron/src/GUI_mainMenu.java index 25ab9a2..0f8d4c3 100644 --- a/Morphochron/src/GUI_mainMenu.java +++ b/Morphochron/src/GUI_mainMenu.java @@ -424,11 +424,11 @@ public class GUI_mainMenu extends JFrame { { if (chckbxM1.isSelected()) { - period.add("M1"); + period.add("m1"); } else { - period.remove("M1"); + period.remove("m1"); } } }); @@ -443,11 +443,11 @@ public class GUI_mainMenu extends JFrame { { if (chckbxM1.isSelected()) { - period.add("M2"); + period.add("m2"); } else { - period.remove("M2"); + period.remove("m2"); } } }); @@ -462,11 +462,11 @@ public class GUI_mainMenu extends JFrame { { if (chckbxM3.isSelected()) { - period.add("M3"); + period.add("m3"); } else { - period.remove("M3"); + period.remove("m3"); } } }); @@ -481,11 +481,11 @@ public class GUI_mainMenu extends JFrame { { if (chckbxM4.isSelected()) { - period.add("M4"); + period.add("m4"); } else { - period.remove("M4"); + period.remove("m4"); } } }); @@ -500,11 +500,11 @@ public class GUI_mainMenu extends JFrame { { if (chckbxE1.isSelected()) { - period.add("E1"); + period.add("e1"); } else { - period.remove("E1"); + period.remove("e1"); } } }); @@ -519,11 +519,11 @@ public class GUI_mainMenu extends JFrame { { if (chckbxE2.isSelected()) { - period.add("E2"); + period.add("e2"); } else { - period.remove("E2"); + period.remove("e2"); } } }); @@ -538,11 +538,11 @@ public class GUI_mainMenu extends JFrame { { if (chckbxE3.isSelected()) { - period.add("E3"); + period.add("e3"); } else { - period.remove("E3"); + period.remove("e3"); } } }); diff --git a/Morphochron/src/Init.java b/Morphochron/src/Init.java index 1076f70..b38c21c 100644 --- a/Morphochron/src/Init.java +++ b/Morphochron/src/Init.java @@ -46,7 +46,7 @@ public class Init GUI_mainMenu frame = new GUI_mainMenu(); frame.setVisible(true); - System.getProperties().list(System.out); + frame.getRunButton().addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) @@ -62,7 +62,7 @@ public class Init String corpusPath = frame.getCorpusPath(); String resultPath = frame.getResultPath(); - for (String period : periods) + for (String period : periods) { frame.setMessage( "Selection made\ncorpus: " + corpus + "\nperiod: " + period + @@ -80,10 +80,10 @@ public class Init ArrayList<String> normalizedWords = new ArrayList<String>(); normalizedWords = wc.getNormalizedWords(); - // for (String word : normalizedWords) - // { - // System.out.println(word); - // } + for (String word : normalizedWords) + { + System.out.println(word); + } // normalizedWords.add("mountainousness"); // normalizedWords.add("mountainous"); // normalizedWords.add("consideration"); diff --git a/Morphochron/src/InitTest.java b/Morphochron/src/InitTest.java deleted file mode 100644 index de1ee50..0000000 --- a/Morphochron/src/InitTest.java +++ /dev/null @@ -1,12 +0,0 @@ -import static org.junit.jupiter.api.Assertions.*; - -import org.junit.jupiter.api.Test; - -class InitTest { - - @Test - void test() { - fail("Not yet implemented"); - } - -} -- GitLab