Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript 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!