hello I know this was dumb question but may I ask how to make another line in JLabel ? Or to make the label Doraemon print on the second line? Thank you in advanced

hello I know this was dumb question but may I ask how to make another line in JLabel ? Or to make the label Doraemon print on the second line? Thank you in advanced

You can do something like this:
JLabel l = new JLabel("<html>pikachu<br>Doraemon </html>", SwingConstants.CENTER);
You need to use one of the Layout Managers, or if you set the layout manager to null by writing
fr.setLayout(null);
then you should set the bounds correctly
lbl.setBounds( , , , ,)
and set the paramaters on how far from the top each label should be
the first paramater sets how far from the left and the second from the top. The last 2 set the size of the label.