Optimizing images JButtons.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Bob_Baske
Posted On:   Thursday, October 4, 2001 07:11 AM


I'm trying to increase my JApplet performance by optimizing the loading of images on my 25 JButtons. Id like to try 2 approaches....


1) Collect the images into a giant images file then place the sub-images on the JButtons as needed.


2) Store the images as ByteArrays statically on the class and load the images on to the JButtons at runtime.


Can someone give me a complete example of both along with a recomendation as to which aproach would perform the best.


Thanks

Re: Optimizing images JButtons.

Posted By:   John_Zukowski  
Posted On:   Monday, October 8, 2001 10:39 PM

Technically speaking, this isn't an applet issue. I believe at least #1 is already covered in either the Swing or AWT FAQs.
About | Sitemap | Contact