Where is File#load() defined? It's not a method in java.io.File. Did you try
just calling:
dndTextArea.setText(getClass().getResource("boxPane.txt"));
Note that I removed the trailing period from your file name - if the file name
actually ends with a period, try adding that back.
On May 24, 2011, at 11:31 AM, noobmike wrote:
> Thanks! It worked perfectly for the Image URLS
>
> Is it possible for the text areas? I tried
> dndTextArea.setText(File.load(getClass().getResource("boxPane.txt.")));
>
> but it didnt work out. I know I can set up a file reader, and just set it to
> a string value,
> but the way you suggested for setting images was quite nice.
>
> Thanks
>
> Mike.
>
> --
> View this message in context:
> http://apache-pivot-users.399431.n3.nabble.com/urls-tp2962645p2980297.html
> Sent from the Apache Pivot - Users mailing list archive at Nabble.com.