On Tue, 4 Jul 2023 09:28:14 GMT, Abhishek Kumar <abhis...@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

Reply via email to