I made a jLabel with a Text that is to big to fit in one line, so I wanted to extend the string in the Label to multiple Lines using \n, but it did not work:
jLabel1.setBounds(8, 8, 267, 49);
jLabel1.setText("Gib die Zeit,\n in der der Computer heruntergefahren werden soll in Sekunden, Minuten und Stunden an und drücke dann auf Herunterfahren");
cp.add(jLabel1);
The text displayed on the Label is "Gib die Zeit,\n in der der Computer heruntergefa...". Why doesn't \n work?