Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Aug 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question how do you place images in an array in java?

    i am making a card game and i would like to know how to put images in array so i can display random cards. Thanks

  • #2
    Senior Coder
    Join Date
    Feb 2004
    Posts
    1,206
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I think you can create an array of ImageIcons:
    http://java.sun.com/j2se/1.3/docs/ap...ImageIcon.html

    I've never done anything like this though, so it's uncharted territory for me.. let me know if/how it works out.

    Sadiq.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •