Re: getParentDirectory




Have you tried it?

Can you think of any alternative plausible behaviour?

I'm trying to, but I have a conversion question. I'm reading String from keyboard, which I convert to File:


String tvps = tvpatroon.getText();
FileSystemView fsv;
File file = fsv.createFileObject(tvps);

Then I have to convert it back to String in order to display it with JOptionPane. Is there a simpler way to do this?
.



Quantcast