Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!