C
Cloud Burst
I want a JButton that looks something like this:
----------
| Line 1 |
| Line 2 |
----------
I DO NOT want to use an image, just text.
I tried:
JButton jb = new JButton("Line 1\nLine 2");
....but all I get is this:
----------------
| Line 1Line 2 |
----------------
Is there a way to do this?
Am I missing something obvious?
Should I use some other component?
Thanks.
----------
| Line 1 |
| Line 2 |
----------
I DO NOT want to use an image, just text.
I tried:
JButton jb = new JButton("Line 1\nLine 2");
....but all I get is this:
----------------
| Line 1Line 2 |
----------------
Is there a way to do this?
Am I missing something obvious?
Should I use some other component?
Thanks.