If you are working in Eclipse, it is recommended that you create a new project to organize your code for this assignment. To do so, select File > New > Java Project and give it a name (e.g., "1030_A2").
Develop a GUI-based application to perform unit conversions. Your application should follow the Model-View-Controller (MVC) design pattern presented in lecture.
The APIs and partially implemented code for each required class are available as follows:
Here are some screenshots depicting the desired layout and functionality:
Here are some screenshots depicting the corresponding desired saved output. The output is simply plain text saved to a file (note the different spacing between units):
You may use the following command to generate the Javadoc for your code:
javadoc -tag pre.:a:"Precondition: " UnitConv*.java
Using the wildcard '*' will include any file that starts with "UnitConv" and ends with ".java".
Submit your work using the following command:
submit 1030 Asgn2 UnitConv*.java
Using the wildcard '*' will include any file that starts with "UnitConv" and ends with ".java".
GridLayout
to arrange the components in the JFrame
.
JTextField
objects.