Making a drawing tool
Hello I am working on a little project, however I am stuck. I need to make a drawing tool where the user can choose a shape(eg, square, circle...) and then put in co-ordinates. Then when the user clicks draw the shape will appear on the Jpanel.
I started it, however I reached an impasse, since I'm new to Java I don't know how to use the co-ordinates(width, height) the user has typed and put it on the Jpanel with the selected shape.
I just want someone to help me get started or explain how its done, Obviously asking for all the code is ridicilous, however if someone can just help me start it.
thank you very much
Getting user-input can be done using a JTextField, more precisely the getText()-method.
What does your code look like so far?