Integrated: 8068293: [TEST_BUG] Test closed/com/sun/java/swing/plaf/motif/InternalFrame/4150591/bug4150591.java fails with GTKLookAndFeel

Prasanta Sadhukhan psadhukhan at openjdk.org
Fri Oct 24 07:29:14 UTC 2025


On Thu, 16 Oct 2025 09:25:34 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:

> Test fails in GTKLookAndFeel with NPE
> 
> java.lang.NullPointerException
> at javax.swing.border.BevelBorder.<init>(BevelBorder.java:78)
> at javax.swing.BorderFactory.createBevelBorder(BorderFactory.java:155)
> at com.sun.java.swing.plaf.motif.MotifInternalFrameTitlePane$Title.<init>(MotifInternalFrameTitlePane.java:325) 
> 
> because `BorderFactory.createBevelBorder` tries to use brighter shade of highlight and shadow color which it tries to obtain from 
> `UIManager.getColor("activeCaptionBorder")` and `UIManager.getColor("inactiveCaptionBorder")` both of which are not defined in GTK L&F as caption border are not used there
> 
> Fix is made to not use these color to create BevelBorder if these colors are not present..

This pull request has now been integrated.

Changeset: 26eed3b6
Author:    Prasanta Sadhukhan <psadhukhan at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/26eed3b61e4987a2998f941d7d26790493850612
Stats:     4 lines in 1 file changed: 2 ins; 0 del; 2 mod

8068293: [TEST_BUG] Test closed/com/sun/java/swing/plaf/motif/InternalFrame/4150591/bug4150591.java fails with GTKLookAndFeel

Reviewed-by: serb, tr

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

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


More information about the client-libs-dev mailing list