Pravin,

Make sure you clean up refererences.  Try explicitly removing
all components.  For example:

        while (cont.getComponentCount() > 0)
        {
            Component inner = cont.getComponent(0);
            if (inner instanceof Container)
            {
                removeAll((Container)inner);
            }
            cont.remove(0);
        }            

Explictly remove all KeyListeners, ActionListeners etc. and null out
you references.

There are still a lot of memory bugs in swing.  Some JPopup menus
will keep around a reference to you JFrame.  There is also a problem
with the offscreen buffer cache.

Check out bug parade on java.sun.com.

Optimizit is a great tool.  You can download a 30 day trial from their site

 http://www.optimizeit.com/


Good luck!






_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing

Reply via email to