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

Help to align Right :eek:  RSS feed

 
hariharan
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have an applet and I added a TextField in my applet.
Whatever i type in textfield it starts from left side of TextArea, Is there any function to align right.
 
Srinivas P
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I do not know about TextField, but with JTextField U can right align the text as below
jtextfield.setHorizontalAlignment(JTextField.RIGHT);
Srini.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!