Skip to content

Commit 69fb68a

Browse files
committed
8350224: Test javax/swing/JComboBox/TestComboBoxComponentRendering.java fails in ubuntu 23.x and later
Reviewed-by: mdoerr Backport-of: 4de92a40d0750a2e6f72eb675d900f1129718d39
1 parent ac984b5 commit 69fb68a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/jdk/javax/swing/JComboBox/TestComboBoxComponentRendering.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2022, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -33,6 +33,7 @@
3333
import java.awt.Color;
3434
import java.awt.Component;
3535
import java.awt.image.BufferedImage;
36+
import java.awt.Font;
3637
import java.awt.Point;
3738
import java.awt.Rectangle;
3839
import java.awt.Robot;
@@ -137,6 +138,7 @@ class ComboBoxCustomRenderer extends JLabel
137138
implements ListCellRenderer {
138139

139140
public ComboBoxCustomRenderer() {
141+
setFont(new Font("SansSerif", Font.BOLD, 32));
140142
setOpaque(true);
141143
setHorizontalAlignment(CENTER);
142144
setVerticalAlignment(CENTER);

0 commit comments

Comments
 (0)