Re: Help with filechooser

2009-06-09 Thread BrianS
Emeka, Your 'file' is an actual file. What you want is it's name. I think the last line should look like this: (println (str "file " (.getName file) I worked on my Mac, I assume it will work in Windows. Brian On Jun 9, 11:53 am, Emeka wrote: > Sorry for the noise, I was too quick. > > On

Re: Help with filechooser

2009-06-09 Thread Emeka
Sorry for the noise, I was too quick. On Tue, Jun 9, 2009 at 3:46 PM, Emeka wrote: > Hello All, > > (add-item-action ost-item (do > (.showOpenDialog file-chooser frame) > (let [file (.getSelectedFile file-chooser)] > (println "file" file > > > When I tried the

Help with filechooser

2009-06-09 Thread Emeka
Hello All, (add-item-action ost-item (do (.showOpenDialog file-chooser frame) (let [file (.getSelectedFile file-chooser)] (println "file" file When I tried the above on windows box it prints file #. But what I want is "file C:\clojure\roobot.txt". Regards, Emeka