Article View: comp.lang.java.programmer
Article #318Java, Swing and Memory
From: Michael Koenig
Date: Sun, 12 Dec 1999 00:00
Date: Sun, 12 Dec 1999 00:00
24 lines
2018 bytes
2018 bytes
Hi, i have following problem: a simple (empty) java JFrame uses, depending on the frame size, more or less of the memory. For example, if I size it to a size of 100 * 100 pixel, the memory use is about two or three MB (with the JVM). If I go to full screen (1024 * 768 pixel), the memory usage increase insteadly to about 12 MB. Therefore I have some questions: a) Does Swing/Java save each window as a bitmap in the memory? If I put a edit control on the frame, the memory usage increases according to the size of the edit field. b) How can I reduce this memory usage? It would be the best, if I could keep it on a constant amount. Does it work with a special look & feel implementation? And if yes, is there one available? c) Can I improve the performance of the gui components of swing? Dragging a frame with a database table is really slow, either on a Pentium III 500 MHz... :(. Thanks for each advice ;). Bye, Michael
Technical Details
Message-ID:
<385bf107.8191191@news.cyberways.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,7faa7fcad61b0cf7,start X-Google-Attributes: gid111d45,public X-Google-Thread: 1089d0,7faa7fcad61b0cf7,start X-Google-Attributes: gid1089d0,public X-Google-Thread: 10fd6d,7faa7fcad61b0cf7,start X-Google-Attributes: gid10fd6d,public X-Google-Thread: 10a146,7faa7fcad61b0cf7,start X-Google-Attributes: gid10a146,public X-Google-Thread: f74b3,7faa7fcad61b0cf7,start X-Google-Attributes: gidf74b3,public X-Google-Thread: fbe9c,7faa7fcad61b0cf7,start X-Google-Attributes: gidfbe9c,public From: doohan@gmx.de (Michael Koenig) Subject: Java, Swing and Memory Date: 1999/12/12 Message-ID: <385bf107.8191191@news.cyberways.net> X-Deja-AN: 559787045 Content-Transfer-Encoding: 7bit X-Trace: news.dpn.de 945026692 98372 194.231.50.137 Content-Type: text/plain; charset=us-ascii MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer,comp.lang.java.gui,borland.public.jbuilder.java.swing,borland.public.jbuilder.java.language,borland.public.jbuilder.java.api,borland.public.jbuilder.java