Loading src/main/java/edu/bu/LanguageCorrection/MainApp.java +6 −3 Original line number Diff line number Diff line Loading @@ -23,7 +23,7 @@ public class MainApp extends JFrame { setLayout(new BorderLayout()); // Module selector String[] modules = {"Select Module", "Crawler", "Checker", "Corrector"}; String[] modules = {"Select Module", "Web Crawler", "Reddit Crawler", "Checker", "Corrector"}; moduleSelector = new JComboBox<>(modules); // User inout entry field and run button Loading @@ -34,9 +34,12 @@ public class MainApp extends JFrame { String input = urlField.getText().trim(); switch (selectedModule) { case "Crawler": case "Web Crawler": runCrawler(input); break; case "Reddit Crawler": runCrawler("https://www.reddit.com/r/"+input); break; case "Checker": runChecker(input); break; Loading Loading @@ -84,7 +87,7 @@ public class MainApp extends JFrame { System.setOut(printStream); // Run the crawler webCrawler.crawl(1); // Adjust the limit (DEFAULT SET TO 1) webCrawler.crawl(5); // Adjust the limit (DEFAULT SET TO 1) // Restore standard output and update the GUI System.setOut(oldStream); Loading Loading
src/main/java/edu/bu/LanguageCorrection/MainApp.java +6 −3 Original line number Diff line number Diff line Loading @@ -23,7 +23,7 @@ public class MainApp extends JFrame { setLayout(new BorderLayout()); // Module selector String[] modules = {"Select Module", "Crawler", "Checker", "Corrector"}; String[] modules = {"Select Module", "Web Crawler", "Reddit Crawler", "Checker", "Corrector"}; moduleSelector = new JComboBox<>(modules); // User inout entry field and run button Loading @@ -34,9 +34,12 @@ public class MainApp extends JFrame { String input = urlField.getText().trim(); switch (selectedModule) { case "Crawler": case "Web Crawler": runCrawler(input); break; case "Reddit Crawler": runCrawler("https://www.reddit.com/r/"+input); break; case "Checker": runChecker(input); break; Loading Loading @@ -84,7 +87,7 @@ public class MainApp extends JFrame { System.setOut(printStream); // Run the crawler webCrawler.crawl(1); // Adjust the limit (DEFAULT SET TO 1) webCrawler.crawl(5); // Adjust the limit (DEFAULT SET TO 1) // Restore standard output and update the GUI System.setOut(oldStream); Loading