RFR: 8346753: Test javax/swing/JMenuItem/RightLeftOrientation/RightLeftOrientation.java fails on Windows Server 2025 x64 because the icons of RBMenuItem and CBMenuItem are not visible in Nimbus LookAndFeel

Prasanta Sadhukhan psadhukhan at openjdk.org
Wed Jun 25 10:10:33 UTC 2025


On Wed, 25 Jun 2025 10:01:52 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:

> > I dont want to do it as I already told before..Its the same strategy used in other recently opensourced tests I mentioned before where `SwingUtilities.updateComponentTreeUI(frame)` is used ...
> 
> But missing `SwingUtilities.updateComponentTreeUI(frame)` wasn't the problem, wasn't the root cause… in this particular case.

Adding this call and removing UIManager.setLookAndFeel(save) is what is used to not fallback to old L&F (this restoration to old L&F is also not used in other tests opensourced) and I stand by it..

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

PR Comment: https://git.openjdk.org/jdk/pull/25907#issuecomment-3004195866


More information about the client-libs-dev mailing list