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.
4 replies to this topic
#1
Posted 18 February 2012 - 04:32 PM
|
|
|
#2
Posted 18 February 2012 - 05:03 PM
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
Posted 18 February 2012 - 05:23 PM
How would i go about doing this ? :] sorry
#4
Posted 18 February 2012 - 05:37 PM
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
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
Posted 18 February 2012 - 05:57 PM
oh ok thanks :]
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









