Clicking for dots

Discussion in 'Java' started by ungvichian, Aug 17, 2003.

  1. ungvichian

    ungvichian Guest

    OK, I'm new to Java applets, so let's just get down and dirty. How do
    I write an applet which, when you click on it, makes a dot where you
    click? And one that uses the drawOval method, I might add.
     
    ungvichian, Aug 17, 2003
    #1
    1. Advertising

  2. (ungvichian) writes:

    > OK, I'm new to Java applets, so let's just get down and dirty. How do
    > I write an applet which, when you click on it, makes a dot where you
    > click? And one that uses the drawOval method, I might add.


    Well, you need the MouseEvent and MouseListener from java.awt.event,
    and you will want to add to a set of coordinates and paint them all in
    paint().
     
    Tor Iver Wilhelmsen, Aug 17, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. nicholas
    Replies:
    2
    Views:
    493
    nicholas
    Nov 18, 2004
  2. chris blackbur

    Dots Per Inch Problem

    chris blackbur, Dec 17, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    425
    =?Utf-8?B?V2ViTWF0cml4?=
    Dec 18, 2004
  3. Vagif Abilov
    Replies:
    4
    Views:
    368
    Vagif Abilov
    Feb 11, 2005
  4. =?Utf-8?B?SmFnYWRlZXNo?=

    Grid dots does not showup in ASP.Net 2.0 designer

    =?Utf-8?B?SmFnYWRlZXNo?=, Feb 27, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    402
    =?Utf-8?B?SmFnYWRlZXNo?=
    Feb 27, 2006
  5. Bart van den Burg

    trailing dots

    Bart van den Burg, Sep 1, 2003, in forum: HTML
    Replies:
    3
    Views:
    1,348
    Lauri Raittila
    Sep 18, 2003
Loading...

Share This Page