Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > TextField

Reply
Thread Tools

TextField

 
 
Dick Roose
Guest
Posts: n/a
 
      06-16-2004
How do I set the alignment on a TextField to RIGHT for number input???
Thanks
Dick
 
Reply With Quote
 
 
 
 
Roedy Green
Guest
Posts: n/a
 
      06-16-2004
On 16 Jun 2004 11:28:03 -0700, http://www.velocityreviews.com/forums/(E-Mail Removed) (Dick Roose) wrote or
quoted :

>How do I set the alignment on a TextField to RIGHT for number input???


All you can do is make sure the preferredSize is no bigger than
necessary, and use a GridBagLayout or similar with right alignment.

To get right justification within a field, you need a JTextField.

--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
remove "_" from TextField="#InnerText" prefersgolfing ASP .Net 0 12-20-2005 10:55 PM
Can HMTLInputFile textfield be readonly? =?Utf-8?B?TUw=?= ASP .Net 1 04-05-2005 11:31 AM
multiline textfield character limitations? Jerome ASP .Net 2 03-14-2005 06:17 PM
Q: Retrieve Selected Text from TextField Soul ASP .Net 0 01-18-2004 12:28 PM
How to read input from a textfield in a datagrid !?! Remco Groot Beumer ASP .Net 0 11-06-2003 04:02 PM



Advertisments