RFR: 8375567: Remove AppContext usage from Swing Motif L&F classes [v2]

Sergey Bylokhov serb at openjdk.org
Tue Jan 20 23:52:03 UTC 2026


On Tue, 20 Jan 2026 22:58:23 GMT, Phil Race <prr at openjdk.org> wrote:

>No extra cost to this.

The cost is the size of the monitor =(
`private static final ComponentUI INSTANCE = new MotifToggleButtonUI();`
fits well into the 80 chars per line, without loosing much information. And it seems that the object should always be used via createUI method anyway, in this class specifically and in all UI delegates.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/29282#discussion_r2710459854


More information about the client-libs-dev mailing list