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

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 default color is 1 should be default width is 1. Thank you !  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

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 public void handle (ActionEvent event) //write your own codes here l//end WidthHandler 1//end class DrawingPane 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 public void handle (ActionEvent event) //write your own codes here l//end WidthHandler 1//end class DrawingPane

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!