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

  • Home
  • SEARCH
  • 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 8471781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T16:53:23+00:00 2026-06-10T16:53:23+00:00

I have a non-serializable object (it contains bound properties) listed in a JavaFX TreeView.

  • 0

I have a non-serializable object (it contains bound properties) listed in a JavaFX TreeView. I’d like the user to be able to drag the TreeView item containing the object onto a LineChart to be plotted but I can’t populate a DragBoard with this object since it’s non-serializable. I don’t really want to copy the object, just a link to it. I tried setting the TransferMode to LINK but this seems to be only an indicator of the intended action; the process still required serialization of the object to be dragged.

How can I drag and drop only a reference to an object?

  • 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-10T16:53:24+00:00Added an answer on June 10, 2026 at 4:53 pm

    If you want your treeitem object to be plotted in LineChart then first while dragging you can save your object instance in your static temp variable and when your drop action happens in your chart then just retrieve that same temp variable and you can manipulate your LineChart easily.

    The workaround of the manual drag and drop is done in here JavaFX Drag and Drop Cell in ListView

    Thanks

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

Sidebar

Related Questions

I have a non-serializable object that I would like to access from a separate
I have an object in my Action class which contains an arraylist of objects
I would like to detect strings that have non-whitespace characters in them. Right now
I have an object graph which contains one object which fires events. I want
I have following entity class User: public class User implements Serializable { @Column(length =
I have non-ascii chars in velocity template files. And when processed they are garbled.
I have non-template class with a templatized constructor. This code compiles for me. But
I have a non ode function that calculates based on the previous time step
I have a non databound DGV (no datasource, etc; rows added manually). To filter
I have an (non-virtualized) ItemsControl that binds its ItemsSource to a ObeservableCollection of ViewModel

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.