I try to create one big String
in appropriate format as i want and print it using PrinterJob
class. Here is the code of String:
String bigtext = "The name\n" + "some another text";
Graphics2D's_object.drawString(bigtext, 50, 50);
But it prints as "The name some another text"
in one line, "\n"
does not work, while i want to print "some another text"
in another line.
P.S. I try to print bigtext in printer.
SOLVED: Here is the solution: Problems with newline in Graphics2D.drawString. (after long trouble :))