Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

during drag and drop behaviour cursor looses cohesion

Status
Not open for further replies.

JavelinMan

Technical User
Jul 10, 2001
15
US
My new project entails fixing a bug in currently updated (Java 1 to Java 2) code that tries to simulate a drag & drop procedure. The correction I need to fix is that WYSInotWYG. i.e. the cursor "comes loose" from the object. when you try to reconnect it "jumps" out of the way. I first thought it was an issue with the mouseListen-ing aspect, but now I think it has to do with Affine Transform-ing and I have no experience with this. HELP! Thanks in advance!
P.S. I am not averse to re-writing the whole thing to correct this issue. also, This d&d behaviour is currently my bosses biggest hard-on and I have to fix it by 2/28 release;huge biz-deal at stake.
 
Can you create and post a small test program that demonstrates the problem?
 
Hey there,
I'm sorry but this application has about 20 classes, and this panel in particular has over 20 methods. Code snippets will NOT be helpful in this case (it would simply take too much room-seems "spammy" to me, sorry).
I think that the issue is with the way the mouseListener/mouseMotionLister methods work. I am working on rewriting the mousePressed, mouseClicked, and mouseReleased methods. It seems to me the issue is the mousing area lacks restrictions; or the drag point on the objects is too generic-I was considering making the drag point specific to each object type (there are eight distinct objects) that can be placed and later moved on this panel.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top