How would you go about putting 52 card images into one file? and then when you call it in a loop the cards are shuffled at random and appear random when your image loads?
I have completed my card game but want to put in images of all the cards into my program so that when the random shuffle takes place the cards are displayed re-shuffled at the end.
I can already display one image but what I don't want to do is 52 JLabels!
Any suggestions?

New Topic/Question
Reply



MultiQuote





|