Blank String in JRadioButton Constructor
Hi all,
I created a JRadioButton something like this:
String strUser = "UserName";
JRadioButton jrb = new JRadioButton("Hello" + " "+strUser);
However, the GUI doesn't display the blank string between two phrases. I also tried the following but none of them work.
JRadioButton jrb = new JRadioButton("Hello" + "\t"+strUser);
JRadioButton jrb = new JRadioButton("Hello "+strUser);
Does any one have any idea what's wrong with it?
Thank you in advance
|