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 8213759
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T11:13:44+00:00 2026-06-07T11:13:44+00:00

I have a JTable and a JList and I have my code set up

  • 0

I have a JTable and a JList and I have my code set up so that I can drag from the JTable to the JList using built in Swing methods.

When I drag from the JTable to the JList, the “image” that is dragged is simply a border of the thing I am dragging. Specifically, in the case of the source being a JTable, the image is just a border of the row I selected to drag.

How can I override what this “image” is? How can I get it so that the user can drag text, not just a border (rectangle)?

  • 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-07T11:13:47+00:00Added an answer on June 7, 2026 at 11:13 am

    You could check out

    • http://rabbit-hole.blogspot.com.au/2006/05/my-drag-image-is-better-than-yours.html
    • http://rabbit-hole.blogspot.com.au/2006/08/drop-target-navigation-or-you-drag.html
    • http://rabbit-hole.blogspot.com.au/2006/04/smooth-jlist-drop-target-animation.html
    • http://rabbit-hole.blogspot.com.au/2006/07/drag-images-for-everyoneand-we-do-mean.html

    Now some may not be quite what you after, but he’s done so much with drag n drop, it’d be waste note to check out as much as you can

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

Sidebar

Related Questions

I have a JTable that is using a TableColumnModelListener() to detect when the column
I have a JTable that loads data from a database. Because sometimes there's too
I have a JTree, a JTable and a JList which displays the same set
If you have JTable set with table.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION) and then you click drag on a
I have a JTable that is populated using a custom TableModel I created. I
I have a jTable set so that it is read only, and selection is
I have a JTable that holds several JPanels using a custom renderer/editor. The JPanel
I have a JTable, where a user can select a single row. If that
I have a JTable which is loaded from a data-structure using table model.The data-structure
I have a JTable that gets data added to it from another JTable .

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.