Posts by Rodrigo Cipriano • 13 points
1 post
-
1
votes1
answer412
viewsQ: How to manipulate Labels using a loop
How can I use these Abels using a loop instead of creating 40 lines of repeated code? jLabel1.setIcon(new ImageIcon(getClass().getResource("/cards/"+cards.get(1)+".png"))); jLabel2.setIcon(new…