Question: I just need help writing the class to create the widths of the line in the program @ 1,3,5,7. And theres a typo it says
A user can choose a width of line strokes using a combo box. Until the width is changed, any line will be drawn with that width. The default color is 1. The width combo box should have choices of 1, 3, 5, and 7 Line Drawing Line Drawing Black Undo Erase Blue Undo Erase A user can move a mouse into the drawing area and press the mouse button, and this point will be the starting point of a line. A user can drag a mouse, and one should see a line from the pressed point to the point where a user is dragging. Once a user releases the mouse button. that line between the pressed point and released point should be drawn on the drawing pane permanently. //Step #2(D)-A handler class used to handle widths of lines private class WidthHandler implements EventHandler
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
