Click here to Skip to main content
11,645,489 members (71,615 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 OriginalGriff 700
1 684
2 Sergey Alexandrovich Kryukov 473
3 CPallini 426
4 Afzaal Ahmad Zeeshan 418
0 OriginalGriff 1,065
1 Sergey Alexandrovich Kryukov 703
2 Afzaal Ahmad Zeeshan 702
3 DamithSL 681
4 CPallini 595

Advertise | Privacy | Mobile
Web04 | 2.8.150731.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