This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
boolean isDirectory() Tests whether the file denoted by this abstract pathname is a directory.
in the File class?
JavaBeginnersFaq "Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Joined: Apr 27, 2001
Yes , using isDirectory i can very well confirm a directory but i need to set a filter in the filedialog itself so that i can restrict the user to the level of directories. The user can select only the directory and cant descend to the file structure level. whenever a user clicks the browse button he should be shown only the available directories and not the files !