Memory « Development « Java Swing Q&A





1. Java Swing Free Memory component needed    stackoverflow.com

I need Java Swing Free Memory component (similar to that in Eclipse IDE). Preferably free (and open source). Thank you in advance.

2. Memory monitor in Java using Swing and AWT    stackoverflow.com

I need code for the memory monitor using Swing which displays the memory pool contents such as code cache, eden space, survivor space, perm gen, temred gen, tenured space and plots ...

3. How do I allow the user to easily choose how much memory to allocate in a Java Swing app?    stackoverflow.com

We have a Swing app that processes relatively large amounts of data. For instance we currently process csv files with millions of rows of data. For the reasons of ...

4. Can Java reuse non-disposed system GUI resources?    stackoverflow.com

I'm trying to understand more about the dispose() function of AWT/Swing's Window class and what it does. Imagine the following series of events:

  1. An instance A of ...

5. Is Java's Swing really a "memory hog"?    stackoverflow.com

I frequently hear that Java's Swing toolkit is considered a "memory hog" (such as this answer). Is this...

  • A due to Swing's architecture;
  • B inherent in Java's memory management; or
  • C an unfounded claim ...

6. How do I get AppContext to release AWT components so they can be garbage collected?    stackoverflow.com

My team is working on analyzing our Swing application to make sure everything is being garbage collected when it's no longer being used. We're running into an odd problem. We are ...

7. Simple Java chat client uses more memory whenever a new message comes    stackoverflow.com

We're writing a simple chat server/client with 2 of my friends(all of us are new programmers). Last night when we run our first running release, and we realized that our client ...

8. Why does repeating setLabel() in SWING cause out of memory?    stackoverflow.com

The class variables are like this:

Button[] tab_but = new Button[440];
static int ii;
After initializing tab_but, I'm testing the following job.
for (int j = 0; j < 9999; j++) {
  String newLabel ...

9. Memory leak in Swing    stackoverflow.com

An application Swing (GUI), a destination a destination information terminal. The VirtualVM profiler shows that the leakage occurs due to

java.awt.image.DataBufferInt
?
sun.awt.image.ImageRepresentation.setPixels
, the increase of memory occurs during transitions between forms. The application logic is ...





10. Memory Game score    stackoverflow.com

I have created a memory game. I am wanting to add a score system, so every time the player picks a matching pair they get a hit but if they don't they ...

11. Synthetica Quaqua Theme memory usage    stackoverflow.com

Any one tell how about Quaqua Theme memory usage comparatively to the Synthetica themes and which them take more memory in Swing applications please. I used Custom Look ...

12. Memory Leaks in Swing    coderanch.com

Are there major memory leaks in correlation to the use of swing components in java programs? Because the project that I am working seems to be eating up mass amounts of memory after leaving the program running for an hour. I am not sure if it is the references to the swing objects that aren't being garbage collected or what the ...

13. Memory Allocation for Objects    coderanch.com

14. Why peers are heavyw./slow if they are native/optimized&already in memory?    coderanch.com

I read hundreds times that AWT is awkward, slow because they are using native peers. But I always thought that perforamnce in Java by definition is worse because it runs thru JVM, interplatform, secure, etc. and apparently shd be anyway slower while native classes are optimized for specific OS, profile, code, not overburdened with interplatform compatibility and other globalistic issues. Then ...

15. explicit deallocation of swing memory    coderanch.com

16. Memory problem / puzzle    coderanch.com

I posted the topic on the JDC forums, so please follow this link to read the topic. Please answer here though for your own convenience http://forum.java.sun.com/thread.jsp?forum=57&thread=473766 Basicly we have a swing app that has many pages (JPanels that we make visible or not depending on the user's actions). The app is like a questionnaire, and we build the gui dynamicly using ...





17. memory problem    coderanch.com

18. Swing Memory Issue    coderanch.com

Hi, I have a swing applet which is in a popup launched from a html parent window. I have issues when I close the applet and the parent page. Many time i still find memory lingering (java coffee cup icon is present and task manager shows the IEXPLORE running). I can understand that if the parent is used to navigate to ...

19. Looking for Help/Tips on Freeing memory in a Swing Application    coderanch.com

Hi, I have a desktop application that loads/edits/saves very large images(about 2000 x 1500 pixel images). The program keeps gobbling up memory until I get an Out of Memory error. Before I receive this error, the program runs around 65-70 megs or ram.. printing takes it up to 85 and sometimes causes the out of memory error. I've tried setting bufferedImages ...

20. How to calculate the size of a graphical object in memory?    coderanch.com

Hello all, I am writing an application and I need to display a lot (10000+) of graphical components (JLabel's with icons). I may have to display them all at the same time in JScrollPanes. Is there a way for me to calculate how much memory will this take? I know that each object itself in memory occupies X bytes, but I ...

21. Memory optmization in Swing    coderanch.com

Am currently working in a project in which Server intiates the Clients application[Swing] and keeps track of the application.For a single client it consumes some 20MB memory.For more than 200 client it consumes 20Mb*200 & More memory .Is there any way by which i can optimize the memory consumption in Java?. Note : I tried calling the swing from a JSP.But ...

22. memory not releasing    coderanch.com

We have a pretty complicated swing application that is eating up memory. We found some memory issues, but still have this remaining. We allocate 128mb of RAM to the heap. We see the garbage collector doing the work from 20 to 127mb because the the memory will go up and down. Once we hit the 128mb size, the memory never goes ...

23. Memory issues with Swing    coderanch.com

24. Memory usage bar in swing app    coderanch.com

25. Out of memory Java Heap size    coderanch.com

I am sorry I am new here. I don't know about code tags. This is the section of code that causes the problem. The code reads an LDAP on our portal and displays the results in a swing jTextArea. It works fine until a large amount of data is returned from the LDAP. I found the same error on this site ...

26. Invalid Memory access in MacOS    coderanch.com

Hi all I have developed swings based java application. I have to open some files to UI.I have 2 option, either i can open through open menuitem "Open" or drag the file into UI.While opening the file through menuitem open my application didn't get "Invalid Memory access " , but when i dragged the file into UI i got Invalid Memory ...

27. Memory Leak.    coderanch.com

Hi, I've been experimenting with using two instances of a frame in a Swing Application framework application. I'm trying to use a util.Timer to create a frame then hide it, null the reference and recreate another instance. When I leave this running I eventually run out of heap?? Can anyone explain why as I think that I am only ever using ...

28. Memory game ArrayIndexOutofBoundsException 5    coderanch.com

Hey guys, my program compiles and runs great except for the very last display box/message. It is suppose to give me the congrats message if all the colors are entered correctly, but I have a small out of bounds error that I can't figure out. Thanks in advance for any help offered. here is the code: import javax.swing.*; import java.awt.*; import ...

29. Memory Leak    coderanch.com

Hi My swing application has two panels panel1 and panel2 . If we click panel1 button(Go to panel 2) it will got to panel2 screen ,if we click the panel2 button(Go to panel1) it will go to the panel1 screen,like these if we click continuously both the buttons memory will get increasing.Is there any solution to stop that? Please suggest any ...

30. Memory management for swing apps    coderanch.com

Hi, I am developing a swing app. Could you share some of memory management guidelines to be followed (optimizations too). Like, would it be benificiary to create a single action listener for all buttons or individual action listener for each button? Like, i need a dialog which will be popping up on a button click...user does this action often...but not too ...

31. Memory Game    java-forums.org

I want to make a Memory Game with 4 x 4 buttons(JButtons - 16 blank buttons) and a "Play Again" and "Exit" button below. The 4 x 4 buttons are blank as the game starts, but when you push one of the buttons it should show a number. You can only click two buttons in a row. And if the two ...

32. Help to make memory game :=)    java-forums.org

Hello, i tryed to make a game with java, Memory game. All thing works fine, GUI, and component and all but i have not any method to chek choices, and disable or enable button. Exmp. if i choice button with value 2 first, and second time the same value in other button so the both button must be disable... if not, ...

33. swing application consumes much memory    java-forums.org

34. Memory game - swing    java-forums.org

Hi. :) I am working on game called "Memory". I am quite sure you all know what that game is. Now I would like to make like return statement when I click on red box (JLabel). It should return me its own text (getText). And the problem is, I don't know how. Or if somebody should know better way to code ...

36. Memory leak in swing    java-forums.org

I am facing memory leak problem in my swing based application. After following a series of steps (after opening and closing same frame 10 - 15 times) application is throwing OOM exception on GUI. When I analyzed heap dump with EMA (eclipse memory analyzer) it is showing that the common point of accumulation is KeyboardManager which is holding the reference in ...

37. Have been stuck up coding the GUI for Memory Card Game    java-forums.org

Galore: welcome to the forum! I've taken the liberty of adding code tags to your post to make the code more readable, but you may wish to edit the post yourself and re-post code that is indented. Fact is, the easier it is for others to read your post and your code, the better your chances of getting a decent reply. ...

38. How to avoid Swing Prog to run out of memory.    forums.oracle.com

39. Problem: memory/loops GUI "Freeze"    forums.oracle.com

Hello, I am in a little predicament that I do not know that answer to. I made a program that captures network packets and analyzes them. It works great in command prompt, but when I put it into GUI it locks up. After I push the "start" button, it starts capturing ALL the packets, like it is supposed to do, but ...