Can't remove extra line spacing in JTextPane for html content?

Ouch, thanks for the info, somehow I didn't consider trying in other OSs! – espinchi Apr 15 '10 at 16:00 Even on the same OS, UIManager.setLookAndFeel() produces a variety of results. Metal looks the most homogeneous.

I empathize with the "grr". :-) – trashgod Apr 16 '10 at 1:21.

Try something like this StyledDocument doc= textPane. GetStyledDocument(); MutableAttributeSet attr= new SimpleAttributeSet(); StyleConstants. SetLineSpacing(attr, -0.2f); //NOTE: negative value.

Looks like you are running windows. What version of JDK/JRE is in use?

That property is ignored, even if I put 200 as the line spacing they stay the same. Using JDK 1.6.0_13 on Windows. – espinchi Apr 15 '10 at 15:59.

Solved! If I use Courier New instead of monospace for the font-family, the line spacing is exactly the same as in the text-plain version under Windows. Thanks everyone!

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions