[Process: javaw.exe STACKING up! (fix?)]

Seems to me that while i’m coding in eclipse, everytime I launch my JFrame (after a while), it causes ALOT of computer lag, start getting popups from windows: COMPUTER MEMORY LOW!.

So i go into my process list and I see javaw.exe about 80+ times.
THE FIX: Whatever your JFrame is called you must add the following.


jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

Yeah very simple, just found it out last night.

I’m just making sure to exit the program in eclipse. If you have a JFrame there’s a method called something like onClose(EXIT_ON_CLOSE), which does it.

That “fix” is needed because the default behavior of JFrame is HIDE_ON_CLOSE.