This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes Help to align Right :eek: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Help to align Right :eek:" Watch "Help to align Right :eek:" New topic
Author

Help to align Right :eek:

hariharan
Greenhorn

Joined: May 23, 2000
Posts: 4
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

Joined: Jun 14, 2000
Posts: 1
Hi,
I do not know about TextField, but with JTextField U can right align the text as below
jtextfield.setHorizontalAlignment(JTextField.RIGHT);
Srini.
 
GeeCON Prague 2014
 
subject: Help to align Right :eek: