Click here to Skip to main content
11,715,425 members (79,129 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: Java Applet
I've created a grid, and a double array of my class gridBalls.
gridBalls has a int type, and you pass to it a number to determine
what to draw in the grid, like 0 blank, 1 ball etc.
What would the code look like in my mousedragged if I wanted to lets say
click on the slot [0] [0] on my grid (pretend its a ball), drag my mouse
to the right and draw a horizontal line (type 3 in this example), or if I
dragged my mouse bottom and it drew a vertical line (type 2)

[torsten] link removed due to security concerns[/torsten]
(code if needed)
Posted 19-Dec-12 7:56am
Edited 22-Dec-12 21:45pm
(no name)34.8K
TorstenH. at 20-Dec-12 3:57am
and your question is???

By the way: we do not provide code. Please ask specific.
Abhishek Pant at 23-Dec-12 4:32am
just post your code here but not 3rd party website. and be specific where you stuck with.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 485
1 Richard MacCutchan 275
2 Maciej Los 259
3 ManasKumarM 155
4 Frankie-C 125
0 Sergey Alexandrovich Kryukov 785
1 CHill60 415
2 Richard MacCutchan 405
3 Maciej Los 389
4 OriginalGriff 320

Advertise | Privacy | Mobile
Web02 | 2.8.150901.1 | Last Updated 23 Dec 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100