This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

ImageIcon in array or single?  RSS feed

 
Thiru Narayanan
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using an application using Swing. I have to have a number of images to be displayed in the UI.
Which method will be better in terms of performance and speed?
1) Having a String array of the image file name and constructing an ImageIcon.
or
2) Constructing ImageIcons separately for each individual image file.
Thank you in advance.
THIRU
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!