java - text area table format -


im trying make table format using test area java, , not work correctly wont in line... need in correct format. have

textarea.settext("name\t\tage\tde-sexed\tfee\n");  textarea.append("text"); textarea.append("\t\t25"); textarea.append("\tyes"); textarea.append("\t\t$00.00\n");  textarea.append("sfessfesf"); textarea.append("\t\t12"); textarea.append("\tfalse"); textarea.append("\t\t$00.00\n"); 

so output isnt third line of output

any idea?

you need use monospaced font jtextarea. like:

textarea.setfont( new font("monospaced", font.plain, 12) ); 

Comments

Popular posts from this blog

jQuery Mobile app not scrolling in Firefox -

c++ - How to add Crypto++ library to Qt project -

php array slice every 2th rule -