• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
Bartenders:
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

Drag and Drop Question -- I Have Problem With Dropping

 
Ranch Hand
Posts: 1309
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic