On Tue, 23 Mar 2021 22:13:21 GMT, Sergey Bylokhov <s...@openjdk.org> wrote:
>> Yes, I think it would be better to allow to set empty text to conform with >> other LaF behavior. >> >> Also `JFileChooser.getApproveButtonText()` and >> `JFileChooser.getApproveButtonToolTipText()` will now return correct values >> for empty strings. >> e.g. before the fix if we call `setApproveButtonText("")` subsequent call to >> `getApproveButtonText()` will return passed string, but in fact fallback >> string is used. >> >> I've also labeled the issue with `noreg-hard`. > > Is it possible to set an empty label in the native file chooser on macOS? Yes, and it looks the same as the one with `" "` label. <img width="662" alt="image" src="https://user-images.githubusercontent.com/77687766/112301125-ea140e80-8c99-11eb-8588-b1730d43124f.png"> ------------- PR: https://git.openjdk.java.net/jdk/pull/3136