Home Segments Top Top Previous Next

1079: Mainline

In the version of the MovieApplication class defined in Chapter 43, the movie file name was wired into the class definition:

setMovieVector(MovieAuxiliaries.readMovieFile("general.movies"));        

Instead, you can use a file name wired into an HTML file by using the parameter mechansim:

setMovieVector(MovieAuxiliaries.readMovieFile(getParameter("file")));