Just because that's the only way I've been displaying images in the past programs. I'll look at the paintComponent() also.
Type: Posts; User: tonynsx
Just because that's the only way I've been displaying images in the past programs. I'll look at the paintComponent() also.
I'll look at the BufferedImage option, I don't know anything about it, so I'll look on YouTube etc.
I already have the 52 cards images available
Is there any way to put more than one image on a JLabel?
If not JLabel, what's the best way to put multiple images?
I'm trying to make a card game, that's the reason.
Thanks, so basically it means it's been updated or something was done to it.
my .getText() has a black line going across it. what does it mean? It's still doing what I want it to do, so I know it works. Please click on the link to see picture!
...
Thanks, Math.round() worked!
Thanks for clearing that up, yes I did misunderstood.
--- Update ---
Now it's working the way I want. Please let me know if I can improve on anything.
Change: 88.38, Dollar: 88, getCent:...
If I have, 77.92, the 77 is the dollar, then .92 is the cent. Unless my calculations are wrong above.
How can I make the value of double 2 decimal places? I know how to display 2 decimal places, but how to actually set the values to 2?
Example, my change below is 7.93
So it knows the dollar is...
Thank you, I'll try that
how can I show multiple lines on gui textField, right now it will only show the latest "value". Please click on the link below to see the GUI output. Notice it's only showing the 2 $1.
...
Is it because the first method is private? How can I fix this?
I'm using NetBeans GUI builder
--- Update ---
Solved
for: double mediumSubTotal, I want to declare MEDIUM_RATE * medium + childSubTotal, but it's giving me a syntax error "cannot find symbol" when I try to add childSubTotal
private void...
Yes, It's only printing the values of the last card
--- Update ---
I just put inside the for loop, the count works now
public int getPlayerCards(int times)
{
...
The code below, getPlayerCards(int times) shuffles the cards from the array (3) times and return the (3) values of shuffleCards, showPlayerCardValue() is suppose to take those (3) numbers and check...
Thanks, I'll try that.
I thought about using ArrayList since I can remove something if I want, but I HAVE to use Array for this.
--- Update ---
Is there a way to compare arrays? My plan is to get the cards that...
In my game below, I have to make sure I don't select the same card again. Just like in a Deck. As you can see below, I chose 'A of Hearts' 2 times. How can I fix this? I'm using two arrays, one...
Thank you so much, it works now
Result:
run:
Color: Red Length in mm: 16 Sharpness: 1
Color: Yellow Length in mm: 17 Sharpness: 4
Color: Green Length in mm: 10 Sharpness: 2
I'm sorry, but not sure if I understand.
The program below shows an array of "crayons". The user should be able to enter a number between 1-8 and show the appropriate crayon. Also, when the user type "end", it should terminate the...
Thank you, I didn't think about that, it works now.
The program below asks the user for the size of the multidimensional array and creates it. Then, I want to add the total of each rows and display it. I'm having trouble with that. My program adds...