Looks like the original idea was to set `fallbacktext` on strings containing only spaces.
I decided to remove the `trim()` call to keep the same behavior and to allows to set such meaningless space only titles/tooltips(same as on other platforms, maybe someone want empty label for some reason). ------------- Commit messages: - initial Changes: https://git.openjdk.java.net/jdk/pull/3136/files Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=3136&range=00 Issue: https://bugs.openjdk.java.net/browse/JDK-8263454 Stats: 3 lines in 1 file changed: 0 ins; 2 del; 1 mod Patch: https://git.openjdk.java.net/jdk/pull/3136.diff Fetch: git fetch https://git.openjdk.java.net/jdk pull/3136/head:pull/3136 PR: https://git.openjdk.java.net/jdk/pull/3136