RFR: 8283214: [macos] Screen magnifier does not show the magnified text for JcomboBox [v3]

Alexey Ivanov aivanov at openjdk.org
Tue Jul 4 14:20:57 UTC 2023


On Tue, 4 Jul 2023 09:28:14 GMT, Abhishek Kumar <abhiscxk at openjdk.org> wrote:

>>> This doesn't really answer the question. Do JTable and JList correctly display the magnified text when a custom renderer is used? In the case with rectangle and a custom renderer? Do they still display text from toString?
>> 
>> Checked with JList and it correctly displayed the magnified text for a rectangle and custom renderer. 
>> The `toString` method of `Rectangle` class is not invoked.
>
>> How does `JTable` handle the situation where an image is displayed? You can use SwingSet2 for testing: it displays colored text and images.
> 
> In Swingset2, the accessibleName is explicitly set for an image in JTable.

> > This doesn't really answer the question. Do JTable and JList correctly display the magnified text when a custom renderer is used? In the case with rectangle and a custom renderer? Do they still display text from toString?
> 
> Checked with JList and it correctly displayed the magnified text for a rectangle and custom renderer. The `toString` method of `Rectangle` class is not invoked.

It means you have to look into how it's done in JList so that JCheckBox works in a similar way.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/14497#discussion_r1252089015



More information about the client-libs-dev mailing list