Message-ID: <2133720998.961.1406146784843.JavaMail.firstname.lastname@example.org> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_960_351247622.1406146784843" ------=_Part_960_351247622.1406146784843 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
All gui swing classes uses the IconBundle class to get there ico= ns. This class is managing ImageIcons to avoid having two times the same im= age loaded in memory, if the image has allready been loaded it will return = you the same reference.=20
Isn't it a little heavy to load images and images in memory like thi=
Don't worry, this class use weakreferences for ImageIcons, so= they are remove by the Garbage Collector when no one uses them.
I consider icons as not important and should never block the program, th= at's why the IconBundle class will never return errors, in= the worst case (can not fine the image) it will return a 1x1 transparant I= mageIcon.=20
make a property file :=20 =20
Once the file is ready, load it once at startup in the IconBundle := =20 =20
nothing simpler :=20