Short question, hopefully simple solution:
I've got my own renderer for a ListView
, nothing too fancy, it just connects a Label
and and Icon
. My questions is, so far, the Label ignores my "\n"s. How can I change that? I'd like to have two lines for the information I present.
Thanks for listening.
Use html for your Label. Like this:
new JLabel("<html>line 1<br>line 2</html>");