Re: integers and arrays in Java - how?
- From: Robert Baer <robertbaer@xxxxxxxxxxxxx>
- Date: Fri, 31 Mar 2006 10:47:47 GMT
Oliver Wong wrote:
I *thought* i mentioned what i wanted to do, as well as "int" not only does not work, it kills the reading of mouse XY coordinates.
"Robert Baer" <robertbaer@xxxxxxxxxxxxx> wrote in message news:ciOWf.10285$Bj7.4597@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I used Google and found some references for integer in Java.
But "int" not only does not work, it also prevents reading X and Y coordinates of the mouse.
What i would like to do:
1) Get X and Y mouse coordinates into a variable that i can do real math on.
So far, i can do math on the values "read" and that result goes into a "variable" that is useful *only* for display.
If i try "int" in that math, the values are then zero for everything - even those where i do no calculation.
2) Use the calculated integer values as an index to a table or array.
It is acceptable to use an HTML "table" as the source for the lookup; W(CalcFromX) and P(CalcFromX) would be the resulting values to be displayed on the screen somewhere.
Can this be done, and eXactly how?
I didn't understand your question at all. Perhaps you can post an SSCCE? http://mindprod.com/jgloss/sscce.html
Be sure to specify what results you expected your program to produce, and what results you actually got, and how they differed.
- Oliver
And i would have no clue as if the code was compilable or not, and i do not think i care, since the jave code is a part of an HTML web page.
However, i will copy the code i have across from my other OS drive later.
.
- References:
- integers and arrays in Java - how?
- From: Robert Baer
- Re: integers and arrays in Java - how?
- From: Oliver Wong
- integers and arrays in Java - how?
- Prev by Date: Re: Using direct access in the constructor?
- Next by Date: Re: integers and arrays in Java - how?
- Previous by thread: Re: integers and arrays in Java - how?
- Next by thread: Re: integers and arrays in Java - how?
- Index(es):
Relevant Pages
|
|