Friday, August 12, 2011
Why dosnt this java script work?
so im trying to drag a jpanel with an image in it. but i dont want it to just transfer data i want it to be able to be viewed while its moving im doing this by adding muse listeners and mouse motion listeners then i set a mouse event so that when its clicked on the object it sets a variable to true then another event says if thats true to get the x and y coordinates of the mouse then it sets two variables to those numbers those variables are then set as the bounds for that jpanel. then it repaints the object. so its giving me a bunch of errors and i dont know why. the code is to long for the question. if you need it to answer tell me. please help ive been up for 3 days trying to get this to work.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment