R
Rpng123
Hello,
I have a JLabel in a JPanel which is in BorderLayout. I would like to have 2
rows of text (static text) in the JLabel. Actually, I want 2 rows of text
(just informational) on the top left corner of the JPanel.
Msg1 Instructions...
Msg2 Instructions...
Is this possible? I am having a difficult time with formatting in Java. I
thought about just using 2 JLabels, but I would have to put the JPanel in
GridLayout. Can I use \n in the JLabel text? If multiple rows of text is
possible in JLabel - how to do this? If not, how can I place two rows of text
on the top left corner of JPanel? Note: I will also be drawing stuff on the
JPanel.
Thanks,
Rich
I have a JLabel in a JPanel which is in BorderLayout. I would like to have 2
rows of text (static text) in the JLabel. Actually, I want 2 rows of text
(just informational) on the top left corner of the JPanel.
Msg1 Instructions...
Msg2 Instructions...
Is this possible? I am having a difficult time with formatting in Java. I
thought about just using 2 JLabels, but I would have to put the JPanel in
GridLayout. Can I use \n in the JLabel text? If multiple rows of text is
possible in JLabel - how to do this? If not, how can I place two rows of text
on the top left corner of JPanel? Note: I will also be drawing stuff on the
JPanel.
Thanks,
Rich