public static void main ( final String [ ] args ) throws IOException { Utils4Swing . initSystemLookAndFeel ( ) ; DirectorySelector . Result result ; try { result = DirectorySelector . selectDirectory ( "Please select the destination directory:" , new File ( "." ) . getCanonicalPath ( ) , true ) ; System . out . println ( "SELECTED=" + result . getDirectory ( ) + ", SUBDIRS=" + result . isIncludeSubdirs ( ) ) ; } catch ( CanceledException e ) { System . out . println ( "CANCELED!" ) ; } }
Starts the selector for a test .