| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
Alexander Lohse wrote:
| I am having problems to create a nice visual DnD for dragging from a
| JTree:
|
| I know I can get the node from the Click-Point, and I know I can attach
| an Image to the "drag". If I do not attach an Image, the outline of the
| whole JTree seems to be used. So my first question: How can I paint
| the outline of just the current dragging element?
Use an image of the current element as the drag image.
| Second: I have no idea how enable dragging more than one node ...
Include more than one node to whatever it is you're using as the dragged data. Usually, that would mean adding all the currently-selected nodes (which requires that your tree allow multiple selection).
Glen Fisher
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.