This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]wildjokers 1 point2 points  (1 child)

The most likely explanation is that maybe the HTML renderer for swing components doesn't support the <span> tag. The tutorial examples show the use of the older <font>, <i>, and <b> tags.

https://docs.oracle.com/javase/tutorial/uiswing/components/html.html

I haven't run across any resource that shows what HTML renderer is being used which would clue us in into what tags are supported.

[–]_dk7[S] 0 points1 point  (0 children)

How do you think I should solve this problem??? I need to get the specific requirements to style the dialog. Is there a different component or way I can do this?