Re: getParentDirectory
- From: "Oliver Wong" <owong@xxxxxxxxxxxxxx>
- Date: Fri, 28 Oct 2005 17:09:53 GMT
"Huub" <"v.niekerk at hccnet.nl"> wrote in message
news:43611b36$0$773$3a628fcd@xxxxxxxxxxxxxxxxxxxxxxxxxx
>>
>> 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?
I don't think it gets much easier than a single method call:
fsv.getName();
- Oliver
.
- References:
- getParentDirectory
- From: Huub
- Re: getParentDirectory
- From: Roedy Green
- Re: getParentDirectory
- From: Huub
- getParentDirectory
- Prev by Date: Re: Alt key calls paintImmediately() on all my JLabels
- Next by Date: Re: can JTree's have multiple roots and models ?
- Previous by thread: Re: getParentDirectory
- Next by thread: Re: getParentDirectory
- Index(es):
Relevant Pages
|