Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Aligning text in JTextArea  RSS feed

 
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!