Search:

Type: Posts; User: zerocool18

Search: Search took 0.08 seconds.

  1. Replies
    11
    Views
    1,686

    Re: java GUI , reading in files

    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...
  2. Replies
    11
    Views
    1,686

    Re: java GUI , reading in files

    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...
  3. Replies
    11
    Views
    1,686

    Re: java GUI , reading in files

    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...
  4. Replies
    11
    Views
    1,686

    Re: java GUI , reading in files

    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?
  5. Replies
    11
    Views
    1,686

    Re: java GUI , reading in files

    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...
  6. Replies
    11
    Views
    1,686

    java GUI , reading in files

    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...
Results 1 to 6 of 6