J
Jason Cavett
I implemented cut/copy/paste for components in a JTree. I used
Transferable and TransferHandler (works very nicely, BTW). But, I'm
having a problem.
I can cut/copy/paste any item in the tree - it works as it should.
When I open a view to the items in the tree (a property editor window)
and attempt to cut/copy/paste, it works as it should (closes the
window on cut and the paste works correctly) EXCEPT for one item in
the JTree.
The item I can't copy and paste is exactly like the other items
(inherits from the same base classes, etc.) except for the fact that
it has a class veriable of type DefaultTableModel. When I remove the
reference to that variable, cut/copy/paste of this component works
fine.
Any idea why? I can't get any errors/exceptions and my trace ends
somewhere within the Java code (but I can't see the code to see what's
happening). I thought it might have something to do with
Serializable, but DefaultTableModel is Serializable.
Thanks for any help.
Transferable and TransferHandler (works very nicely, BTW). But, I'm
having a problem.
I can cut/copy/paste any item in the tree - it works as it should.
When I open a view to the items in the tree (a property editor window)
and attempt to cut/copy/paste, it works as it should (closes the
window on cut and the paste works correctly) EXCEPT for one item in
the JTree.
The item I can't copy and paste is exactly like the other items
(inherits from the same base classes, etc.) except for the fact that
it has a class veriable of type DefaultTableModel. When I remove the
reference to that variable, cut/copy/paste of this component works
fine.
Any idea why? I can't get any errors/exceptions and my trace ends
somewhere within the Java code (but I can't see the code to see what's
happening). I thought it might have something to do with
Serializable, but DefaultTableModel is Serializable.
Thanks for any help.