3 Attachment(s)
Problem with making/sorting a deck of cards
Thanks for looking at this post!
I am working on making an applet that displays a deck of cards. The program has three buttons: a show/hide toggleButton, a sort button, and a shuffle button. I've got the three buttons working correctly but I can't get the GUI to display the ranks of the cards. (E.g. as 2d...ace of spades, two of diamonds, etc.) The method that we were assigned to "draw" the cards in is the paint(). The pseudocode for how to get the images in the GUI is there but I have no idea what the syntax is going to be. My problem is, how do I get the GUI to display the ranks of the cards? Thanks for any help. :)
Attached is my current program. The paint() is in the CardApplet class.