RFR: 8139228: JFileChooser renders file names as HTML document [v2]
Tejesh R
tr at openjdk.org
Tue May 13 10:34:38 UTC 2025
> The rendering of the directory names are handled as JLabel w.r.t Look and feel and also either Details/List view. Though FilePane creates basic rendering for these two few Look and Feel define their own renderers and also ComboBox Directory directory name view. Since HTML filtering is not taken care in any of these renderers, JLabel renders them as HTML document if nothing is set or specified.
> The fix is to get "html.disable" property from JFileChooser and set the same to JLabel component which renders and set Directory name. Hence applications can either enable/disable this property and control HTML rendering of directory name.
Tejesh R has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:
- Merge branch 'master' of https://git.openjdk.java.net/jdk into branch_8139228
- Fix for windows L&F
- Fix + Manual test
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/24439/files
- new: https://git.openjdk.org/jdk/pull/24439/files/7c190fe3..ebe3d910
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=24439&range=01
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=24439&range=00-01
Stats: 332004 lines in 3532 files changed: 111256 ins; 205570 del; 15178 mod
Patch: https://git.openjdk.org/jdk/pull/24439.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/24439/head:pull/24439
PR: https://git.openjdk.org/jdk/pull/24439
More information about the client-libs-dev
mailing list