@@ -80,13 +89,14 @@ public class SelectCorrectionGUI extends JFrame {
publicvoidactionPerformed(ActionEvente){
Stringsentence=listener.loadNextSentece();
if(sentence.equals("")){
JOptionPane.showMessageDialog(SelectCorrectionGUI.this,"All senteces have been reviewed and the corrected version has been written to corrected.txt!");
System.exit(0);
return;
}
updateCounter(listener.loadNextSentece());
// Update buttons based on file changes
updateCounter(sentence);
updatePanel();
}
@@ -95,6 +105,8 @@ public class SelectCorrectionGUI extends JFrame {
updatePanel();
labelPanel.add(counterLabel);
labelPanel.add(emptyLabel);
labelPanel.add(noteLabel);
applyPanel.add(applyButton);
applyPanel.add(nextButton);
mainPanel.add(labelPanel,BorderLayout.NORTH);
@@ -110,8 +122,13 @@ public class SelectCorrectionGUI extends JFrame {