--- old/src/java.desktop/macosx/native/libawt_lwawt/awt/CFileDialog.m 2015-11-24 12:55:03.000000000 +0530 +++ new/src/java.desktop/macosx/native/libawt_lwawt/awt/CFileDialog.m 2015-11-24 12:55:03.000000000 +0530 @@ -120,8 +120,16 @@ [openPanel setCanChooseFiles:!fChooseDirectories]; [openPanel setCanChooseDirectories:fChooseDirectories]; [openPanel setCanCreateDirectories:YES]; + if (fChooseDirectories) { + NSString *buttonPrompt = NSLocalizedString(@ " Choose ", + @ " Choose " ); + if (buttonPrompt == nil) { + buttonPrompt = @ " Choose " ; + } + [openPanel setPrompt:buttonPrompt]; + } } - + [thePanel setDelegate:self]; fPanelResult = [thePanel runModalForDirectory:fDirectory file:fFile]; [thePanel setDelegate:nil];