i have a method that create a array with some path to files...
and in the program i will press a button "Next Page", to show tem next item in the array[1] array[2]...
but the event of the button Next Page Cant access the array created inside the metlhod
i know how to pass the array between methods, but how to make a button event to access it ?!
the code is so big but its something like this:
public class gui {
public void actionPerformed(ActionEvent arg0) {
->>>>> i want the array accessible from here,
}
public void geraListaArquivos(String subdir, String matricula) {
....
....
....
File[] listOfFiles = folder.listFiles();
...
....
}
}
i want the access of the values in ListOfFiles, at the ActionPerfomed, how can i do this ;x?