Draw Canvas App - Part 1
Description and Objective
- This app draws a shape (rectangle, circle or ellipse) of a (size small, medium or large) at the specified coordinate on a canvas.
Things to Do
- In this first part of this app, you will only work on the placement of the GUI components. Use any layout/method you see fit to make your program's interface to look the same as the image displayed above.
- In order to draw a boundary around the components and label them as "Shape", "Coordinates" and "Shape size" as in the image use
TitledBorder
class in package javax.swing.border.*
. Use setBorder
method to surround the container holding the components.
- You may need to use a
JSeparator
to bring components closer in certain regions.