File Dialogs  «Prev  Next»


Lesson 8 Course Project
Objective Add Graphical User Interface to the FileDumper program

File Dumper Program Course Project

Add a graphical user interface to the FileDumper program so that users can select and change the file to be dumped

In addition, change the interpretation of the file's data. Let us begin working on the course project program.
In the previous course of the Networking with Java series, Java Streams, students built a character-mode program called FileDumper.
FileDumper accepts a filename and a command line switch as inputs and dumps the specified file in ASCII, hex, decimal, floating point numbers, double-precision floating point numbers, shorts, ints, or longs. The value of the command line switch will determine the data format of the dump.
If you did not take the Java Streams course, you can download the source code for the FileDumper and EfficientStreamCopier classes. These classes are found in the compressed course download file available on the Resources page.
For the first part of this course's project, we are going to add a graphical user interface to the FileDumper program that will allow the user to select the file to be dumped and to change the format the data will appear in (ASCII, floating-point numbers, decimals, ints, shorts, and so on) when the file is dumped.

Add Graphical User Interface - Exercise

Click the Exercise link below to continue working on the course project.
Add Graphical User Interface - Exercise