Skip to main content

awt

1 reply [Last post]
stanfordia
Offline
Joined: 2007-12-30

Hello,
I have an awt application and I want to choose a directory there is a FileDalog but it chooses files only.
Is there in AWT something like filechooser in SWT?
Please I need your help
Thanks

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
anthony_p
Offline
Joined: 2006-07-24

The AWT FileDialog doesn't support this concept. I think you have to stick with the Swing JFileDialog to be able to choose directories, or implement the AWT directory chooser yourself (extend the Dialog, get the list of files, filter out the directories, show them in a list box (or a tree-view) and enable to choose a directory.)

--
best regards,
Anthony