aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes setting text alignment in a TextField Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "setting text alignment in a TextField" Watch "setting text alignment in a TextField" New topic
Author

setting text alignment in a TextField

MervinMel Welsh
Greenhorn

Joined: Nov 20, 2003
Posts: 1
How can I set the Alignment of the text inside a TextField, but withou using Swing?
Wayne L Johnson
Ranch Hand

Joined: Sep 03, 2003
Posts: 399
I don't believe you have that ability when using AWT. You can set the alignment of a java.awt.Label when you create it, but not with a java.awt.TextField.
 
jQuery in Action, 2nd edition
 
subject: setting text alignment in a TextField