471,316 Members | 1,342 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,316 software developers and data experts.

Changing Line Spacing in JLabel (and other Swing Components)

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
0 3268

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

6 posts views Thread by James Nugent | last post: by
3 posts views Thread by bergel | last post: by
5 posts views Thread by Andrew Poulos | last post: by
1 post views Thread by SDyke | last post: by
2 posts views Thread by reon | last post: by
nanhiPari
3 posts views Thread by nanhiPari | last post: by
12 posts views Thread by Dom | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.