I need to syncronise line spacing of my PDF ListItem and JTextArea in my GUI. I can do it by adjusting one or another.
And it all works great unil a ListItem (or JTextArea) is more than one line long (line wrap is set to true in JTextArea).
I can adjust the height between the two ListItems. That distance will also be applied to the height between two rows of a single multiline ListItem.
However, in my GUI, due to compononet boreders and default line spacing in JTextArea, those two are not the same. Difference is about one pixel, but on large scale that can accumulate and cause some issues.
So, is there any way I can set linespacing in JTextArea, or any way I can differentiate between spaceing between two list items and two rows of the same list item?
I'm all up for using external libraries of any kind and any kind of tricks it may take...