Skins and Memory Leaks...
I ran into an interesting issue with Skins last weekend. Seems when I use the Nimbus skin and the Substance Skin with JinternalFrame and close the JInternalFrame it closes and the JInternalFrame object is GC for Substance Skin but not when using Nimbus.
I did do the following:
1. DISPOSE_ON_CLOSE was used for the JInternalFrame
2. I removed listeners for the JInternalFrame when the window was closing
3. Made sure there were no hard references to the JInternalFrame.
I did notice what I had left as references in VisualVM was SynthInternalFrameTitlePane, SynthInternalFrameUI and SynthDesktopIconUI. Perhaps Substance did something to make sure whatever Nimbus was doing was removed or nulled?
Anyone have any ideas what to do?