Advertisement
Guest User

Untitled

a guest
May 26th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.70 KB | None | 0 0
  1. private class LoadButtonActionListener implements ActionListener {
  2.         public void actionPerformed(ActionEvent e){
  3.            
  4.             String dict = view.getDictionaryName();
  5.             String doc = view.getDocumentName();
  6.             try {
  7.                 sc.loadDictionary(dict);
  8.                 sc.loadDocument(doc);
  9.                 view.displayErrors().displayError(); << meant to make the errors appear in the text area in outputPanel
  10.             } catch (IOException e1) {
  11.                 view.fileError("Error with the file");
  12.                
  13.  
  14.             }
  15.            
  16.             // this is later on in the class, where i'm trying to
  17.             // make a method that'll call the getError and put it
  18.             // in the displayError text field in outputPanel
  19.  
  20.         private String displayError() {
  21.             return sc.getError();
  22.        
  23.        
  24.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement