On Fri, 29 Sep 2023 12:12:23 GMT, Alexey Ivanov <aiva...@openjdk.org> wrote:
> You should probably pass `altAtt` as the `description` parameter, yet I'm > unsure if it's ever used in this context. As I say, I'm unsure if it's used… The description could be exposed to Accessibility API. By default, `ImageIcon` uses the URL as the description if it isn't provided: https://github.com/openjdk/jdk/blob/99de9bb83ff70fe81c89751516a86a94c8f552be/src/java.desktop/share/classes/javax/swing/ImageIcon.java#L231-L233 Now that you handle the `alt` attribute, you can pass the description if it's provided. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/15319#discussion_r1368559705