When doing something like node.setAttribute("label", "Line 1\nLine2") I expected to get Line 1 and Line 2 on two separate lines. Instead I got the lines concatenated on the same line (Line1Line2). This works as expected with the JavaFX renderer but not with the Swing renderer.
When doing something like
node.setAttribute("label", "Line 1\nLine2")
I expected to getLine 1
andLine 2
on two separate lines. Instead I got the lines concatenated on the same line (Line1Line2
). This works as expected with the JavaFX renderer but not with the Swing renderer.