Memory « Icon Image « Java Swing Q&A





1. Java Swing: Read many images files without memory problems?    stackoverflow.com

I'm writing a Java Swing application that will load from disk about 1500 png images that range in size from 50kb to 75kb each. I don't need to load all of ...

2. Reading image using Javax takes a lot of memory    stackoverflow.com

I'm opening bunch of files using JFileChooser and for each image I create BufferedImage using image = ImageIO.read(path);. Where image is declared as a static field. Now I've got 30files 1Mb each, ...

3. Memory problems with opening Images/Security    coderanch.com

Thanks for the link. I don't think its really a security issue, but I dunno. My problem is, the only way to create a File object that is not on the client machine is to use the getCodeBase() in the constructor. This works fine for creating the file on my local machine because the getCodeBase() returns something like File:C:\\blah blah.. hence ...

4. Image and memory problem    coderanch.com

Hi! I have a function to load 3 images and I give the reference of this image object to an JPanel where i display it. I must call the function very offen. After 5 times i have a memory usage of 80 MB RAM!!! That's not good. Can you help me please, i need a similar better function or my program ...

5. still memory problem with image loading    coderanch.com

Hi, I already posted my problem here. I changed my source code, but I had still an increasing use of memory. Maybe you can help me, i dont know any other solution. I have 2 JPanels, the first with a button to choose the next pictures. There I load my pictures. These are shown in the second panel (named picPanel) as ...

6. Image in memory?    coderanch.com