Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

OutOfMemoryException During Drag and Drop From a Tree



I am running into a problem when trying to do drag and drop from a large JTree (about 3000 leaves). The default behavior under Mac OS X 10.2 seems to be to create a translucent image of the entire tree during the drag operation and display that image during the drag. I have the JTree displayed in a JScrollPane but the created image is the entire tree, not just the visible portion. The creation of this image causes an OutOfMemoryException that prevents the drag operation from beginning. Is there a non-Mac specific way to stop this image from being created or to force it to only display the visible portion of the tree? I have to be able to compile and run the code on other systems as well (Linux and Windows) so I can't do anything specific to OS X.

Thanks to anyone who can help,
Gordon Shankman
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Be sure to read the FAQ http://developer.apple.com/java/faq/ before posting
Do not post admin requests to the list. They will be ignored.



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.