On Fri, 4 Apr 2025 07:21:35 GMT, Tejesh R <t...@openjdk.org> wrote:

> 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.

This pull request has now been integrated.

Changeset: 917c1546
Author:    Tejesh R <t...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/917c1546f353c2814de8465d1dfad66b01561f12
Stats:     189 lines in 8 files changed: 189 ins; 0 del; 0 mod

8139228: JFileChooser renders file names as HTML document

Reviewed-by: prr, serb, aivanov

-------------

PR: https://git.openjdk.org/jdk/pull/24439

Reply via email to