public static Label lines ( Justification just , String ... lines ) { final String sep = just == LEFT ? "\\l" : just == RIGHT ? "\\r" : "\n" ; final String value = Stream . of ( lines ) . map ( line -> line + sep ) . collect ( joining ( ) ) ; return new Label ( value , false , false , false , false , null , null ) ; }
Create a simple multiline label .