Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  [Process: javaw.exe STACKING up! (fix?)]  (Read 326 times)
0 Members and 2 Guests are viewing this topic.
Offline GabrielBailey74

Full Member
**

Posts: 157
Medals: 2


Owner of Elite Demons R.I.P


« on: 2012-02-01 19:27:58 »

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.

1  
jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);


Yeah very simple, just found it out last night.

Offline Mads

JGO Ninja
***

Posts: 674
Medals: 16


Directly directional


« Reply #1 on: 2012-02-01 20:28:40 »

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.

Offline ra4king

JGO Kernel
*****

Posts: 3160
Medals: 196


I'm the King!


« Reply #2 on: 2012-02-01 20:56:47 »

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

Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.101 seconds with 19 queries.