Results 1 to 2 of 2
  1. #1
    Mike_H is offline Member
    Join Date
    Mar 2010
    Posts
    2
    Rep Power
    0

    Default 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

  2. #2
    Metalibi is offline Member
    Join Date
    Mar 2010
    Posts
    2
    Rep Power
    0

    Default

    Getting user-input can be done using a JTextField, more precisely the getText()-method.

    What does your code look like so far?

Similar Threads

  1. is Polymorphism the tool to use?
    By xcallmejudasx in forum New To Java
    Replies: 2
    Last Post: 05-04-2009, 06:02 PM
  2. UML Tool
    By Ciwan in forum New To Java
    Replies: 1
    Last Post: 02-11-2009, 02:17 AM
  3. applet tool.
    By makpandian in forum New To Java
    Replies: 0
    Last Post: 12-10-2008, 06:52 AM
  4. Javadoc-tool
    By tskumarme in forum New To Java
    Replies: 1
    Last Post: 05-30-2008, 02:31 PM
  5. ANT (Another Neat Tool) - II
    By Java Tutorial in forum Java Tutorial
    Replies: 0
    Last Post: 05-24-2008, 03:44 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •