This week's book giveaway is in the HTML/CSS/JavaScript forum.
We're giving away four copies of Practical SVG and have Chris Coyier on-line!
See this thread for details.
Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Aligning text in JTextArea

 
Dave Johnson
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there anyway of aligning text in JTextArea? Looking through the API it doesn't seem as though the class has anyway of doing so.
If I show you a example of output it might demonstrate the problem:
line8 count8 cost8
line9 count9 cost9
line10 count10 cost10
What I would prefer is this:
line8 count8 cost8
line9 count9 cost9
line10 count10 cost10
Is this sort of allignment possible?
 
Jose Botella
Ranch Hand
Posts: 2120
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is easier to use a JTable for that.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!