• Post Reply Bookmark Topic Watch Topic
  • New Topic

DnD Problem in drop()  RSS feed

Jeremy Hooie
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a complex scenario involving Drag and Drop. I have a JTable which is Drag and Drop Enabled. Each cell in the table has a JList TableCellRenderer and TableCellEditor. The JList TableCellEditor is a DragSource, but not a DropTarget. When dragging to an unselected cell in the table, the drop event in the table is called (which is what I want). But if you click on a cell in the table (calling the editor) and perform the same drag, the drop event in the list is called. The list should not be registered as a DropTarget! I'm hoping there's something small I'm doing wrong and I just don't see it. I'm including the code to create the editor at the bottom of this message.
Thanks in advance,
Create the List editor....

ListEditor extends DnDList....


Sorry, I had to format the code.
[ February 15, 2002: Message edited by: Jeremy Hooie ]
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!