Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #20581 > unrolled thread

Help with mouse dragging in grid

Started byjacobhot999@gmail.com
First post2012-12-19 10:58 -0800
Last post2012-12-19 10:58 -0800
Articles 1 — 1 participant

Back to article view | Back to comp.lang.java.programmer


Contents

  Help with mouse dragging in grid jacobhot999@gmail.com - 2012-12-19 10:58 -0800

#20581 — Help with mouse dragging in grid

Fromjacobhot999@gmail.com
Date2012-12-19 10:58 -0800
SubjectHelp with mouse dragging in grid
Message-ID<928f7f57-80eb-489f-9005-0110bcf833ed@googlegroups.com>
http://pastebin.com/qw00TCd6
(code if needed)

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)

Thanks

[toc] | [standalone]


Back to top | Article view | comp.lang.java.programmer


csiph-web