Results 1 to 2 of 2
  1. #1
    Mpisha is offline Member
    Join Date
    Oct 2008
    Posts
    1
    Rep Power
    0

    Question Problems With Using Canvas to draw On...,

    I have a problem where i want to draw Shapes in my canvas and the shapes i draw them from a ComboBox:If Circle,I choose Circle in the ComboBox,it draws in the Canvas!But i just cant get started since Am still learning how to use Netbeans.Please can someone Show me the way.Thanks!!

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,421
    Rep Power
    25

    Default

    Start simply and work from there.
    1)write a program that just draws a shape
    Come back here if problems
    2)Then make it so it can draw more than one shape based on the contents of a variable.
    Come back here if problems
    3)Next you'll want to allow the user to chose the shape which will set the value of the variable.
    Come back here if problems

Similar Threads

  1. Using a Canvas
    By a_klasanov in forum CLDC and MIDP
    Replies: 3
    Last Post: 12-08-2008, 10:36 AM
  2. Canvas Example
    By Java Tip in forum SWT Tips
    Replies: 0
    Last Post: 07-25-2008, 02:22 PM
  3. Using SWT Canvas
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-08-2008, 09:06 AM
  4. Canvas question
    By christina in forum Advanced Java
    Replies: 1
    Last Post: 08-03-2007, 07:21 PM

Posting Permissions

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