Message-ID: <2038490110.5031.1369498563297.JavaMail.email@example.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_5030_1973322333.1369498563296" ------=_Part_5030_1973322333.1369498563296 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.
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 remo= ve 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.
make a property file :
Once the file is ready, load it once at startup in the IconBundle :
nothing simpler :------=_Part_5030_1973322333.1369498563296--