Your submission should follow our general guidelines. Please follow
object-oriented principles. Submit executable jar
for all problems.
TestDrag2.java
for some ideas.
GeneralPath
objects,
e.g. MoveTo - LineTo - LineTo - ... to allow it to construct, read, and write WIRE objects for circuit layout.
Wire objects should have the syntax W x1 y1 x2 y2 . . . xn yn
R R1 1 2 100 R R2 3 4 400 R R3 2 0 500 R R4 4 0 200 I I1 0 1 0.1 I I2 2 3 0.02
Write a Java program that includes a MenuBar with File, Edit, and Help menus.
The Help menu should contain and About item that displays a
information dialog pane describing the program, its author, and date of current version.
The Edit menu should allow the user to select a resistor or create a new resistor and use the
dialog box to modify its properties.
The File menu should contain an Open item that uses FileChooser to open
and read a netlist file. Implement a FileNameExtensionFilter
so only
netlist text files are visible. The File menu should also contain a Save item that allows the
user to generate a new circuit file. The save function should not overwrite an existing file unless
explicitly allowed by the user. The operations of selecting or creating a resistor from problem 2 should
be used in this program
Maintained by John Loomis, last updated 11 March 2020