Hello!
I want to create a program which has three buttons : DrawRectangle, DrawOval and Clear. When click DrawRectangle it draws a rectangle in a textfield. When click clear everything to be cleared. Please help i cannot start at all.
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
Hello!
I want to create a program which has three buttons : DrawRectangle, DrawOval and Clear. When click DrawRectangle it draws a rectangle in a textfield. When click clear everything to be cleared. Please help i cannot start at all.
Take it one step at a time.
Start out getting a JFrame to show up on the screen at a decent size.
Then perhaps get a canvas in the main display and some buttons off one of the edges. BorderLayout provides this functionality, which happens to be the default for JFrame.
Continue on with adding functionality to the buttons one at a time.
I have problems with functionality of the buttons please write the whole code!
Newbie_in_manners, too.
Please read The problem with spoonfeeding
lol jps gives you the info you needed to help yourself and you yell to make the code for you...you are asking for free help sorry not help cause that is what jps provided you are yelling for someone to do it for you...good luck with that