Readers Writers   «Prev  Next»


Java Course Project Application - Exercise

Run Course Project Application

To get an idea of what you will be creating in this course, run the FileViewer application on your system.
The .class files needed to run the application are included in the compressed course download file, which is available on the Resources page.
Here is what you need to do:
  1. Get the compressed course download file that is appropriate for your platform.
  2. Uncompress the course download file. The .class files needed to run the course project application are in the Application folder.
  3. Run the application by typing java FileViewer2 at the command line. The application will appear in a separate window.

Screenshot of FileViewer
Screenshot of FileViewer

Screenshot of FileViewer

The FileViewer application allows you
  1. choose a file,
  2. choose how the file contents will be diplayed (ASCII, Hex, and so on), and
  3. choose different text encodings in which the file can be read and displayed.
The encoding choices appear in a list box in the top right panel of the application. The display choices are to the left of the encodings in drop-down list. The bottom right panel gives you the file information (is it readable or writable, how big is it, when was it last modified, and so on). The bottom left panel displays the content of the file using the display option and encoding you chose.
You do not have to recreate the look of this application exactly, but you want to make sure that all the functionality specified in the course project description appears in your application. To return to the lesson, click the Submit button.