mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-14 18:03:44 +00:00
8335646: Nimbus : JLabel not painted with LAF defined foreground color on Ubuntu 24.04
Reviewed-by: aivanov, dnguyen, serb
This commit is contained in:
parent
4ee6079b11
commit
650fd35b3b
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2024, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 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
|
||||
@ -71,7 +71,7 @@ public class bug4248210 {
|
||||
UIManager.getDefaults().put("Label.foreground", labelColor);
|
||||
}
|
||||
|
||||
JLabel label = new JLabel("<html><body>Can You Read This?</body></html>");
|
||||
JLabel label = new JLabel("<html><body>\u2588 \u2588 \u2588 \u2588</body></html>");
|
||||
label.setSize(150, 30);
|
||||
|
||||
BufferedImage img = paintToImage(label);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user