Tom,
I remember noticing a memory leak problem with ImageIcons but I stopped
using them so I didn't chase it up. I'll have another look if I get time.
mick :)
Thomas McKay wrote:
> Greetings!
>
> I'm running into an inconsistent problem: I have a threaded application
> that at startup creates a lot of JButton and JToggleButton items and
> adds them to a JToolBar. The buttons are created with ImageIcons.
> Periodically my application hangs at startup after loading 12 to 16 of
> the images. I've tried everything I can think of to prevent this w/o
> success. Oh, the images are JPEGs. If I create the buttons after the
> application is up completely (I'm assuming all threads and resources are
> in a stable condition), I cannot get it to hang.
>
> On a related note, it seems a waste to use JPEGs as the label. Anyone
> know of a way to use color X bitmap (XPM2) files as the labels? Maybe I
> can avoid the hangup problem if the Image/MediaTracker combo is avoided.
>
> Tom
>
> =====================================================================
> To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
> Java 2D Home Page: http://java.sun.com/products/java-media/2D/
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 2D Home Page: http://java.sun.com/products/java-media/2D/