Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8856349
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:20:13+00:00 2026-06-14T14:20:13+00:00

I think this should be really easy with JavaFX – so I must be

  • 0

I think this should be really easy with JavaFX – so I must be missing the point somewhere. I have a simple drag-and-drop from a toolbar onto an AnchorPane which works fine, however I’m trying to find out exactly where the drop occurs to find out where to insert the new item within a group of Nodes already there. The event object DragEvent tells you the target object but not where it was dropped relative to the target ( only relative to the source ). I tried just listening to all mouse released events on the target but that isn’t triggered for a drag onto an object. Anyone know how this should be done?

Mike Watts

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T14:20:14+00:00Added an answer on June 14, 2026 at 2:20 pm

    You can either use the getSceneX/Y methods to obtain absolute coordinates of the location of the drop or install a listener on the AnchorPane which listens to DRAG_OVER DragEvents. The last position of the DRAG_OVER event that occured before it was dropped is the position where it was dropped.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i think this should be very easy , but i really don't know how
This might be something very straight forward and I really think it should work
I think this should be simple but I am having some difficulty implementing it.
I think this should be simple, but im having a real hard time finding
This should be pretty straightforward I would think. I have this string: [quote=Joe Johnson|1]Hi![/quote]
Dear all,Now i have this question in my java program,I think it should be
This is a really easy question, but I can't figure out what I should
I think it should be quite easy but I really can't make it work.
So I'm new to Arrays, but I think this should be fairly easy, I
I have a question that really feels like I should have an easy answer

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.