So, I have this blackjack game which I have been working on. I have successfully done it, but the output is normally printed in the form ''3 of Diamonds'' on the Java terminal window.
My instructor has requested that I modify it so it will be able to show the card as an image. What I have done so far is develop an equation (int i = n*type+rdigit) (used from the OneCard class) so that the computer will know to which card I am referring to, from the cards in the picture of allcards. For example, if the Ace of Spades is to be used, n = 13, type = 1 and rdigit = 1. When put into the equation the answer is correct.
My problem is that I have a very small amount of knowledge of how to draw graphics, thus I have no idea how to actually show the image.
I would really appreciate if someone was to help me on this presumably easy task.
This is where everything I have is located. https://www.dropbox.com/home/Blackjack%20Card%20Game
Thank you.