Results 1 to 3 of 3
  1. #1
    Firzenizer is offline Member
    Join Date
    Apr 2011
    Posts
    2
    Rep Power
    0

    Default Table/ArrayList of Images

    I was trying to create some kind of table of images. I have images that are loaded from internet and I would like to add them to some kind of table.

    I was trying following:

    Image[] enemyimg = new Image[10];

    enemyimg[0] = enemy;

    Enemy is Image type. NetBeans is giving error: "Cannot find symbol". I dont understand what is wrong with that. Whats wrong with this syntax? Is there any way to make a table or ArrayList of images?

  2. #2
    f1gh is offline Member
    Join Date
    Nov 2010
    Posts
    46
    Rep Power
    0

    Default

    the only thing i can deduce from that snippet is that the variable "enemy" is not defined or has no declaration and reason for getting "Can't find Symbol" error.

  3. #3
    Firzenizer is offline Member
    Join Date
    Apr 2011
    Posts
    2
    Rep Power
    0

    Default

    Quote Originally Posted by f1gh View Post
    the only thing i can deduce from that snippet is that the variable "enemy" is not defined or has no declaration and reason for getting "Can't find Symbol" error.
    OMG, everything was working all the time I was just using image indexes that didn't actually exist.

Similar Threads

  1. Replies: 0
    Last Post: 12-16-2010, 05:14 PM
  2. Replies: 4
    Last Post: 12-16-2010, 04:32 PM
  3. Replies: 7
    Last Post: 11-22-2010, 01:26 PM
  4. Replies: 1
    Last Post: 01-08-2010, 06:19 AM
  5. ArrayList problem with images
    By Cymro in forum New To Java
    Replies: 2
    Last Post: 02-05-2008, 06:22 PM

Tags for this Thread

Posting Permissions

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