Package anlavn.ui.filechooser
Class WindowsFolderBrowser
java.lang.Object
anlavn.ui.filechooser.WindowsFolderBrowser
The native Windows folder browser.
Example: WindowsFolderBrowser fb = new WindowsFolderBrowser(); File dir =
fb.showDialog(parentWindow); if (dir != null) { // do something with dir }
-
Constructor Summary
ConstructorsConstructorDescriptioncreates a new folder browserWindowsFolderBrowser
(String title) creates a new folder browser with text that can be used as title or to give instructions to the user -
Method Summary
-
Constructor Details
-
WindowsFolderBrowser
public WindowsFolderBrowser()creates a new folder browser -
WindowsFolderBrowser
creates a new folder browser with text that can be used as title or to give instructions to the user- Parameters:
title
- text that will be displayed at the top of the dialog
-
-
Method Details
-
setTitle
-
showDialog
displays the dialog to the user- Parameters:
parent
- the parent window- Returns:
- the selected directory or null if the user canceled the dialog
-