On Thu, 29 Jun 2023 13:39:26 GMT, Alexey Ivanov <aiva...@openjdk.org> wrote:
>> I tested several times, didn't get such kind of result and as per java docs >> toString method returns `a string representation of the object.` So, I think >> it will be a valid string. > > An interesting question… it depends on the object. > > At the same time, if I'm not mistaken, the renderer also uses `.toString()` > to display an object. However, it's possible to set a custom renderer which > may display an arbitrary property from an object. > > Did you try to populate combo box with anything but `String` objects? I tried with the `Integer` object and it works fine. Please suggest if anything else I can test. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/14497#discussion_r1247548938