Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.10 seconds.

  1. Replies
    8
    Views
    1,761

    Re: Image Drawing Problem

    It sounds like eclipse is putting the .class files in a different folder from your .java files, which is pretty normal. Oftentimes, people will store the images in a separate folder, then do...
  2. Replies
    8
    Views
    1,761

    Re: Image Drawing Problem

    Your code works for me, if I create a ghost.jpeg image and place it in the same folder as my .java and .class files.

    Are you using packages? Are you sure you have the filename right (jpg vs jpeg,...
  3. Replies
    8
    Views
    1,761

    Re: Image Drawing Problem

    Sounds like it. You might want to check where the class files (as opposed to the .java files) are located. Or you might want to use the full path.

    Or you could try printing out the full path of...
  4. Replies
    8
    Views
    1,761

    Re: Image Drawing Problem

    What happens if you do this:

    System.out.println(new File("ghost.jpeg").exists());
Results 1 to 4 of 4