Hello.
I have a project that im working on for a couple of days. I wanna make a card game (about texas holdem) that shows you 3
cards (the flop) and you need to tell if that flop is good or not for a bet. So, i made a class Fereastra.java (Window.Java in my native language), a class Face.java, Suit.java that generates a random face and suit from an enum and returns it as a
string. I also made a Card.java class. Now i have to make a Flop.java class that shows the images (3) representation of the each card randomly chosen. I made an
Flop.properties file in wich i put
FAd = Ad.png ( face ace of diamonds) and so on for each card. My Flop.properties is in the
practice.resources.carti package.
carti means
cards. I have to somehow tell Flop.java or Card.java to look in the Flop.properties for the image name that is chosen. To explain better i post the code below. Btw, im working in NetBeans.
Face.java
Suit.java
h, s, d, c means heart, spade, diamond, club
Card.java
I guess is also something wrong in the Card constructor.
If, in the main class Fereastra.java or in the Flop.java class, i do this:
I get errors.
To summarize i want, when i call Flop() to be displayed 3 cards randomly chosen on my JLabel.
Any help would be very appreciated. Also some feedback about my english is appreciated.
PS: If its something that i posted other than in english (and i didnt explained it) or you dont understand something please tell me.
Thanks for reading this.