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.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Rectangle/Ellipse program help

  1. #1
    Junior Member
    Join Date
    Feb 2012
    Thanked 0 Times in 0 Posts

    Default 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?


  2. #2
    Join Date
    Feb 2012
    Thanked 3 Times in 3 Posts

    Default 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.

Similar Threads

  1. Gradual appearance of Rectangle...
    By rdheepan in forum Web Frameworks
    Replies: 5
    Last Post: January 13th, 2012, 12:07 AM
  2. Rectangle questions
    By stacksofamber in forum Java Theory & Questions
    Replies: 3
    Last Post: September 5th, 2011, 12:43 PM
  3. Dragging and Dropping Rectangle - GUI
    By cjct927 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: June 8th, 2011, 09:59 AM
  4. grow a rectangle in java
    By Khoatic in forum Java Theory & Questions
    Replies: 2
    Last Post: September 8th, 2010, 06:13 PM
  5. Dropping to graphic element dragged from JList
    By tua1 in forum AWT / Java Swing
    Replies: 1
    Last Post: November 29th, 2008, 08:22 AM