diff --git a/test/jdk/ProblemList.txt b/test/jdk/ProblemList.txt index 2c63cd43d25..c6e62a55962 100644 --- a/test/jdk/ProblemList.txt +++ b/test/jdk/ProblemList.txt @@ -695,10 +695,6 @@ sanity/client/SwingSet/src/ToolTipDemoTest.java 8293001 linux-all sanity/client/SwingSet/src/ButtonDemoScreenshotTest.java 8265770 macosx-all sanity/client/SwingSet/src/EditorPaneDemoTest.java 8212240 linux-x64 -# jdk_swing Ubuntu 23.04 specific - -javax/swing/JComboBox/TestComboBoxComponentRendering.java 8309734 linux-all - # This test fails on macOS 14 javax/swing/plaf/synth/7158712/bug7158712.java 8324782 macosx-all diff --git a/test/jdk/javax/swing/JComboBox/TestComboBoxComponentRendering.java b/test/jdk/javax/swing/JComboBox/TestComboBoxComponentRendering.java index 0e176a911a3..da914314670 100644 --- a/test/jdk/javax/swing/JComboBox/TestComboBoxComponentRendering.java +++ b/test/jdk/javax/swing/JComboBox/TestComboBoxComponentRendering.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2022, 2025, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -33,6 +33,7 @@ import java.awt.Color; import java.awt.Component; import java.awt.image.BufferedImage; +import java.awt.Font; import java.awt.Point; import java.awt.Rectangle; import java.awt.Robot; @@ -137,6 +138,7 @@ class ComboBoxCustomRenderer extends JLabel implements ListCellRenderer { public ComboBoxCustomRenderer() { + setFont(new Font("SansSerif", Font.BOLD, 32)); setOpaque(true); setHorizontalAlignment(CENTER); setVerticalAlignment(CENTER);