JOptionPane in Java -
does know why tab (\t) not work joptionpane.showmessagedialog?
my code follows:
string addtext = "name\t\taddress\t\ttel.no\temail\n"; (int = 0; < addressbooksize; i++) { addtext = addtext+entry[i].viewallinfo(); } system.out.print(addtext); joptionpane.showmessagedialog(null, addtext);
are there other ways align text in joptionpane?
put tabbed text jtextarea
string addtext = "name\t\taddress\t\ttel.no\temail\n"; (int = 0; < addressbooksize; i++) { addtext = addtext+entry[i].viewallinfo(); } system.out.print(addtext); joptionpane.showmessagedialog(null, new jtextarea(addtext));
Comments
Post a Comment