Search:

Type: Posts; User: tonynsx

Page 1 of 3 1 2 3

Search: Search took 0.11 seconds.

  1. Replies
    5
    Views
    1,791

    Re: JLabel, multiple images?

    Just because that's the only way I've been displaying images in the past programs. I'll look at the paintComponent() also.
  2. Replies
    5
    Views
    1,791

    Re: JLabel, multiple images?

    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
  3. Replies
    5
    Views
    1,791

    JLabel, multiple images?

    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.
  4. Replies
    4
    Views
    1,248

    Re: getText() with a black line across it?

    Thanks
  5. Replies
    4
    Views
    1,248

    Re: getText() with a black line across it?

    Thanks, so basically it means it's been updated or something was done to it.
  6. Replies
    4
    Views
    1,248

    getText() with a black line across 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!
    ...
  7. Re: How to set value of double to 2 decimal places

    Thanks, Math.round() worked!
  8. Re: How to set value of double to 2 decimal places

    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:...
  9. Re: How to set value of double to 2 decimal places

    If I have, 77.92, the 77 is the dollar, then .92 is the cent. Unless my calculations are wrong above.
  10. Re: How to set value of double to 2 decimal places

    Thank you
  11. How to set value of double to 2 decimal places

    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...
  12. Replies
    2
    Views
    936

    Re: GUI, textarea help, line by line string

    Thank you, I'll try that
  13. Replies
    2
    Views
    936

    GUI, textarea help, line by line string

    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.
    ...
  14. Replies
    2
    Views
    894

    Re: Cannot add values

    Is it because the first method is private? How can I fix this?

    I'm using NetBeans GUI builder

    --- Update ---

    Solved
  15. Replies
    2
    Views
    894

    Cannot add values

    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...
  16. Re: Help with a class (only receiving the last value instead of all)

    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)
    {
    ...
  17. Help with a class (only receiving the last value instead of all)

    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...
  18. Replies
    7
    Views
    1,375

    Re: Help with Arrays (Java card game)

    Thanks, I'll try that.
  19. Replies
    7
    Views
    1,375

    Re: Help with Arrays (Java card game)

    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...
  20. Replies
    7
    Views
    1,375

    Help with Arrays (Java card game)

    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...
  21. Re: Problem with String (and integer) conversion!

    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
  22. Re: Problem with String (and integer) conversion!

    I'm sorry, but not sure if I understand.
  23. Problem with String (and integer) conversion!

    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...
  24. Re: Multidimensional user defined array question

    Thank you, I didn't think about that, it works now.
  25. Multidimensional user defined array question

    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...
Results 1 to 25 of 59
Page 1 of 3 1 2 3