开发者

Java Swing Components - why deprecated HTML markup?

开发者 https://www.devze.com 2023-04-10 05:01 出处:网络
I\'m learning Java from a webdev background.I\'ve been using some HTML inside Swing components, but a little part of me dies every time I see or write

I'm learning Java from a webdev background. I've been using some HTML inside Swing components, but a little part of me dies every time I see or write

<p color=red>Two<br>Lines</p>

So I can sleep at night, what's the reason for this po开发者_Go百科or, deprecated markup? And, if I use XHTML and inline styling, is my program at risk of being unsupported?


Swing supports only limited CSS without a third-party package; that's just the way it is :)

0

精彩评论

暂无评论...
验证码 换一张
取 消