ECE 538 Assignment 6

Your submission should follow our general guidelines. Please follow object-oriented principles.

  1. Create a dialog box, similar to that below, that will allow you to create a new resistor object or modify an existing resistor object. Your test program should demonstrate both capabilities. This dialog box will be used in later problems.

  2. Modify an image display program (such as LoadImageApp) to add a JLabel in BORDER.SOUTH that displays the location of the mouse and the color of the pixel at that location. Use a JFileChooser dialog to allow the user to select an image file.
  3. Write a Java program that allows you to create, select and move objects around the screen. See MouseTest for some ideas. You should extend objects created in earlier assignments.
  4. Write Java classes representing five different circuit elements, including independent current sources and independent voltages sources. Your test program should produce a graphic display of these objects on the screen. Each object, therefore, must include location and orientation parameters.

  5. Show the family trees for JFrame, JPanel, JLabel, and JButton.

  6. The file contains a mortar simulation in Java. Modify this program to use Swing components. Also edit the textfields to include initial or suggested values for the parameters, so that you can press the Fire button immediately. Warning: The Java application does not close down properly when run by double-clicking. This behavior is one of the problems you must fix.

Maintained by John Loomis, last updated 20 June 2016