• Post Reply Bookmark Topic Watch Topic
  • New Topic

ImageIcon in array or single?

 
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!