On Wed, 28 Jan 2026 21:06:27 GMT, Sergey Bylokhov <[email protected]> wrote:

> > Does an app need direct access to the `MediaTracker` that's used to 
> > download the image? Probably not, therefore a private member is better.
> 
> The application will have this access via getter already

I'm confused… Where's a getter in `ImageIcon` that an app can use to get a 
`MediaTracker` instance?

The `getTracker` method is *private*.

> the problematic part here is access to the Component which is mutable so we 
> cannot use it via final field.

The `component` field is *final*.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/29433#discussion_r2742775613

Reply via email to