Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/jdk/javax/swing/plaf/basic/BasicHTML/bug4248210.java
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -71,7 +71,7 @@ private static void test(UIManager.LookAndFeelInfo laf) {
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>");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
JLabel label = new JLabel("<html><body>\u2588 \u2588 \u2588 \u2588</body></html>");
JLabel label = new JLabel("<html><body>\u2588\u2588\u2588\u2588</body></html>");

No one sees the text, spaces aren't necessary.

A comment will clarify what the Unicode character is used and why. Otherwise, it looks good to me.

label.setSize(150, 30);

BufferedImage img = paintToImage(label);
Expand Down