RFR: 6753661: JFileChooser font not reset after Look & Feel change [v6]

Alexey Ivanov aivanov at openjdk.org
Tue Feb 14 11:45:43 UTC 2023


On Mon, 13 Feb 2023 09:19:23 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

> ok..modified but I guess mine was not "incorrect" either..

No, it was not wrong.

I believe this way is clearer though: if `curFont == origFont`, `equals` is bound to return `true`, so you can just avoid calling `equals` twice and make the condition shorter.

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

PR: https://git.openjdk.org/jdk/pull/12180



More information about the client-libs-dev mailing list