Cards Applet

use an applet to display images of playing cards. The applet should load a deck of 52 playing card images from the "images" folder that you downloaded. The applet should shuffle the deck (use a random number generator) and display the first 10 cards of the shuffled deck. Display the cards in two rows of five cards each.

Also, sleeping in the paint() method is completly useless. When paint() is executed, it draws offscreen in memory. It is only when paint() terminates and the drawing is finish that the hardware (the screen) is refreshed with that drawing in memory. If it wasn't the case, drawing something over something else would make the screen flickers.