Create an application that will draw a figure. Your application will have a Shape menu with three choices: Circle, Square, and Triangle. A Color menu should have four choices: Black, Cyan, Magenta, and Yellow. When one of the menu items is chosen, redraw the figure. In the east area of the application, place three text fields and a button. The text fields will allow you to enter integer values for the x and y coordinates of the center of the figure and the size of the figure. When the Change button is pressed, get the values from the text fields and redraw the figure.
What will be an ideal response?
See the code in Exercise14.java, ShapeWindow.java.
Computer Science & Information Technology
You might also like to view...
The getBooleanFromUser(prompt) function can be used with an if or while statement.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology
You can call the To String method using the following general format:
a. ToString.variableName() b. ToString(variableName) c. variableName.ToString() d. To.variableName.String()
Computer Science & Information Technology
The reference model described in ISO Standard 7498 breaks network communication into seven layers. List each layer from top to bottom.
What will be an ideal response?
Computer Science & Information Technology
To select two slides on the Slides tab, click one slide, hold down the ________ key, and then click a second slide
A) [Ctrl] B) [F2] C) [F5] D) [Alt]
Computer Science & Information Technology