I simply want to add some text on my JTextPane and I'm having the following problem:
I am using the file class to load an external textfile:
File file = new File("/my/program/pics/mytext.txt");
but the problem is that I always get FileNotFound exception! After a bit of research though I realised that only absolute filepaths work like for instance "c:\myfiles\mytext.txt"
What's wrong and how can I make it load a file stored in my package? (that is relative position)
Thanks