By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,515 Members | 1,339 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,515 IT Pros & Developers. It's quick & easy.

Changing Line Spacing in JLabel (and other Swing Components)

P: n/a
I'm testing a GUI app on a couple Linux boxen and one Win2k box. I'm using
Java 1.4.2 on each (or the closest on Win2k -- whatever version comes
close). On one Linux box and the Win2k box the line spacing is very close
(for example, when I use HTML in JLabels, or even in JTextAreas), but on
the other Linux box, the line spacing is much wider.

I'm using default Swing fonts -- I'm not setting anything. I can't find a
field or function to change the line spacing in JLabels or other Swing
components.

Is there any way to change line spacing on multiline JLabels or JTextAreas?
(Yes, I'm using HTML text on these components).

Thanks!

Hal
Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.