I'm using the Slick library as the framework for my small game. Linebreaks ain't supported by default on the Graphics2d object. However, i found this little fix:
private void drawString(Graphics g, String text, int x, int y) {
for (String line : text.split("\n"))
g.drawString(line, x, y += g.getFontMetrics().getHeight());
}
As i am very new to Java, i am not sure what the easiest way to implement this would be, and would really love some help! :-)