Memory Leak with Swing Drag and Drop
- by tom
I have a JFrame that accepts top-level drops of files. However after a drop has occurred, references to the frame are held indefinitely inside some Swing internal classes. I believe that disposing of the frame should release all of its resources, so what am I doing wrong?
Example
import java.awt.datatransfer.DataFlavor;
import java.io.File;…