I have inherited this program from a previous employee and have been tasked at
reducing its current throw weight - during runtime it weighs in at about 230M
of memory. The reason its so heavy is that the program makes use of about 12M
in graphic files - everything from dialog background to buttons is done by
loading a JPG - all into ImageIcons. For easy reference all of the graphics are
contained as final static members of a single class (AppGraphics) - making
reference as easy as AppGraphics.CancelButton
I believe he did this for displaying speed - since many of the graphics are
reused throughout the program, but as the number of graphics rise this program
is becoming a real porker.
Any ideas that don't involve taking an axe and hacking my way through.
Chip
-----
"The reason the mainstream is thought of as a stream is because it's so
shallow" --George Carlin
|