<Swing Dev> RFR: 8263454: com.apple.laf.AquaFileChooserUI ignores the result of String.trim() [v2]
Alexander Zvegintsev
azvegint at openjdk.java.net
Wed Mar 24 11:15:40 UTC 2021
On Tue, 23 Mar 2021 22:13:21 GMT, Sergey Bylokhov <serb at 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
More information about the swing-dev
mailing list