Jump to content

Image's not displaying Please help ? (Eclipse)

- - - - -

  • Please log in to reply
4 replies to this topic

#1
SirJames

SirJames

    Newbie

  • Members
  • PipPip
  • 27 posts
Hello, im using eclipse and ive tried using images with my programs (all different methods of getting them to display)but none of them work,is there a specific place i have to put them in,the project folder or what ?
Its really getting annoying so if anyone could help me it would really be appreciated :].:confused:

regards James.

#2
Norm

Norm

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 327 posts
If you create a File class object and print out the value of the absolute path, you will see where the program will look for files.

#3
SirJames

SirJames

    Newbie

  • Members
  • PipPip
  • 27 posts
How would i go about doing this ? :] sorry

#4
Norm

Norm

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 327 posts
What part are you having trouble with?
Creating an instance of the File class? You can use any name, it doesn't matter.
Print out the absolute path? Use the System.out.println() method to print the String returned by the File class's method that returns the absolute path.

import java.io.File; to get the package

#5
SirJames

SirJames

    Newbie

  • Members
  • PipPip
  • 27 posts
oh ok thanks :]




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users