X-Received: by 2002:a37:a616:: with SMTP id p22mr1032113qke.24.1551391143383; Thu, 28 Feb 2019 13:59:03 -0800 (PST) X-Received: by 2002:a81:3c0c:: with SMTP id j12mr1065075ywa.112.1551391143182; Thu, 28 Feb 2019 13:59:03 -0800 (PST) Path: csiph.com!weretis.net!feeder6.news.weretis.net!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!m21no218446qta.0!news-out.google.com!o7ni57qta.1!nntp.google.com!m21no218436qta.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.java.programmer Date: Thu, 28 Feb 2019 13:59:02 -0800 (PST) In-Reply-To: <91d4e209-bbe3-4fe1-9506-7984f8ed64cc@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=50.78.95.177; posting-account=2czF5goAAAD4GBMPIGV4KcD2K4PhoB_H NNTP-Posting-Host: 50.78.95.177 References: <8617d379-1659-4582-94fe-6ffb95c975e4@googlegroups.com> <3167672b-6941-4802-acd7-3b7defe06348@googlegroups.com> <91d4e209-bbe3-4fe1-9506-7984f8ed64cc@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: it's Closeable, but I don't want to close() it yet. From: Eric Douglas Injection-Date: Thu, 28 Feb 2019 21:59:03 +0000 Content-Type: text/plain; charset="UTF-8" Lines: 6 Xref: csiph.com comp.lang.java.programmer:38767 On Thursday, February 28, 2019 at 4:52:14 PM UTC-5, burs...@gmail.com wrote: > If you need caching, you can cache on icon level. > The same ImageIcon instance can be used in multiple > places, right? > The ImageIcon is a single instance. I did mention it's creating a public final static variable in a static block. You're saying I shouldn't want to use javax.imageio.stream.MemoryCacheImageInputStream here? Perhaps I'm not understanding it's purpose.