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

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -