Accessing files/URLs with Java - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Accessing files/URLs with Java

SnookerLoopySnookerLoopy Posts: 41Member
[b][red]This message was edited by SnookerLoopy at 2005-7-5 20:34:56[/red][/b][hr]
Can anyone help with this issue? How do you tell the java compiler where to find files/images if they are not in the root directory? Using / or just gives an error message. If I wanted to load an image from 'My Pictures' for example, or from a specific URL on the internet, what is the structure of the java syntax? Any help is much appreciated :-)

No need to reply, I've sorted it now!

BUT... new problem: Can anyone tell me how to get the address of a file returned as a String by a JFileChooser object? It's crucial to what I am doing. Thanks.


Sign In or Register to comment.