Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Drag and Drop Question -- I Have Problem With Dropping

 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was unable to do the "drag-and-drop". Because SCJA Part I has this type of question, I need help ahead of time.
What I did was:
I moved the mouse over to the item which I wanted to pick up. I pressed down on the mouse, then moved the mouse while keeping the mouse in the "pressing down" position. I released the mouse at the destination where I wanted the item to be dropped.
Sympton:
The item was picked up and moved along with the mouse. When I released the mouse at the destination, the item did not get dropped at where I wanted it to be. Instead, the item went back to the original place.
Would you provide diagnostic comment on what I did wrong? Thanks.
 
Joe Gilvary
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where did you drop the item? You must drop
it on something that implements the
DropTargetListener interface.
Originally posted by JiaPei Jen:
I was unable to do the "drag-and-drop". Because SCJA Part I has this type of question, I need help ahead of time.
What I did was:
I moved the mouse over to the item which I wanted to pick up. I pressed down on the mouse, then moved the mouse while keeping the mouse in the "pressing down" position. I released the mouse at the destination where I wanted the item to be dropped.
Sympton:
The item was picked up and moved along with the mouse. When I released the mouse at the destination, the item did not get dropped at where I wanted it to be. Instead, the item went back to the original place.
Would you provide diagnostic comment on what I did wrong? Thanks.
 
JiaPei Jen
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am sorry that I confused you. My question is not about programming. It is a simple and stupid question regarding how to do the "drag and drop" while I am physically "in the test room". I was able to pick up and move the item using the mouse. The item does not get dropped at the desired place when I released the mouse.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic