Draw different shapes of different colours and positions within applet

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • huda81
    New Member
    • Apr 2008
    • 1

    Draw different shapes of different colours and positions within applet

    Dear all,

    I need help in creating this system really got tired by searching. I am new baby born programmer (^_^).

    The requirments are:

    Develop a Java applet that draws different shapes of different colours and different positions within the applet. Using combo-boxes the user should be able to specify the shape and colour; to specify position (relative to the origin of the applet panel) text fields can be used. As well, the user should be able to clear the display area.

    Yours Faithful,

    (^_^)
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you. Attempt the assignment/program yourself first and post questions regarding any difficulties you have or about a particular function of the code that you don't know how to achieve.

    Please read the Posting Guidelines and particularly the Coursework Posting Guidelines.

    Then when you are ready post a new question in this thread.

    ---

    Please remember to provide a meaningful Title for any threads started (see the FAQ entry Use a Good Thread Title).

    This helps to ensure that other members, and also the general public, will have a better chance of finding answers to any similar questions.

    MODERATOR

    Comment

    • BigDaddyLH
      Recognized Expert Top Contributor
      • Dec 2007
      • 1216

      #3
      Why not take the 2D API tutorial?

      This 2d Java tutorial describes 2d graphics, geometry, text APIs, images, printing, advanced 2d topics

      Comment

      • NitinSawant
        Contributor
        • Oct 2007
        • 271

        #4
        Use paint method of applet class,
        Code:
        public void paint(Graphics g)
        {
                g.drawLine(0,0,300,300);
                //paste Drawing different shapes code here
                //object g has many methods for painting and creating shapes
        }

        Comment

        Working...