Ben
Ben

Reputation: 57217

Java Swing Components - why deprecated HTML markup?

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 poor, deprecated markup? And, if I use XHTML and inline styling, is my program at risk of being unsupported?

Upvotes: 1

Views: 186

Answers (1)

Dave Newton
Dave Newton

Reputation: 160191

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

Upvotes: 3

Related Questions