Rectangle/Ellipse program help
The program I am working on allows you to click on 4 buttons: Rectangle, Ellipse, Edge, Label
For label there is also a text field. If you click the rectangle button and then click somewhere on the frame it will draw a rectangle there, same with the Ellipse. You drag a line for the edge, connecting rectangles and ellipses, and the label is to write something inside of the rectangle/ellipse as you draw them.
I'm wondering if i'm doing it correctly so far, I have buttons down but nothing working yet.
Classes: GraphDrawViewer, GraphDrawComponent
Am I supposed to have classes like RectangleComponent for this to work? And is there any class I need to add to make this work?
Re: Rectangle/Ellipse program help
I can't figure out what do you mean, where are you stuck :( It's a common sense that writing a class to do something.