RFR: 8335130: The test "javax/swing/plaf/synth/ComponentsOrientationSupport/5033822/bug5033822.java" fails because the background color of the tabs is displayed incorrectly.

Abhishek Kumar abhiscxk at openjdk.org
Wed Jul 17 07:00:53 UTC 2024


On Tue, 16 Jul 2024 19:44:40 GMT, Damon Nguyen <dnguyen at openjdk.org> wrote:

> But why does this only apply to custom LAFs? What does Nimbus and GTK do differently? Because I'm assuming the fix was for all 3 before, but now you're just removing the fix from Synth and applying it to GTK & Nimbus.

The painter for the GTK, Nimbus and custom xml based synth style is different and that is the reason when custom xml is used the painting is done differently. In this case the custom painter is ParsedSynthStyle's Delegating Painter which invokes ImagePainter's paintTabbedPaneTabBackground API to paint the tabs using the image mentioned in xml file  (i.e. path).

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

PR Comment: https://git.openjdk.org/jdk/pull/20091#issuecomment-2232569789


More information about the client-libs-dev mailing list