Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private class LoadButtonActionListener implements ActionListener {
- public void actionPerformed(ActionEvent e){
- String dict = view.getDictionaryName();
- String doc = view.getDocumentName();
- try {
- sc.loadDictionary(dict);
- sc.loadDocument(doc);
- view.displayErrors().displayError(); << meant to make the errors appear in the text area in outputPanel
- } catch (IOException e1) {
- view.fileError("Error with the file");
- }
- // this is later on in the class, where i'm trying to
- // make a method that'll call the getError and put it
- // in the displayError text field in outputPanel
- private String displayError() {
- return sc.getError();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement