draw shape with user defined values
I want to learn to do GUIs
what I'm trying to do currently is to draw a shape e.g. square,circle by taking values from a user.
i.e. user enters coordinates x,y, width,height in text field and then the shape is drawn.
I cannot find any examples of something like this.
I currently take values from the text field using action listener but i have problems with passing it to a shape and then drawing it.
Can you point me to same examples? or tell me step by step how to do it?