it wont compile , because i cant access model in the actionlistener. i cant call m.readFromFile. it says m cannot be resolved.
class eventRead implements ActionListener{
public void...
Type: Posts; User: zerocool18
it wont compile , because i cant access model in the actionlistener. i cant call m.readFromFile. it says m cannot be resolved.
class eventRead implements ActionListener{
public void...
argg sorry , but im really spazzing out here lol. i dont quite get what im supposed to do. ok , so ur saying i should declare it outside of the method and use it in the method. so im in my GUI class...
im creating the model object inside the method because i was calling the method readFromFile thats in the model class, that already does the work for reading in files. i figured all i had to do was...
i see what you mean , about the teh variable m. but i cant figure out how to fix it. would i just create another reference to the model object outside the listener?
my problem is that my actionlistener isnt reading in the data right. everytime i hit the read button , it creates a model each time and the variable is only visible in that context making the model...
hello! im working ona program that reads in a file called pot4.asc. my button Read File , is supposed to read in a file when clicked. i already have all the work done in my model class , im just...