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 Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: setting text alignment in a TextField