Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Help to align Right :eek:

 
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!