You mean when using drawString? It probably doesn't honor control characters. Why don't you keep the text in a List<
String>, and iterate over that when drawing? You'd have to specify x and y coordinates for each line, but you will eventually have to do that anyway (as well as using different font sizes for different lines) if you want to achieve the Star Wars text effect.