TextField

Discussion in 'Java' started by Dick Roose, Jun 16, 2004.

  1. Dick Roose

    Dick Roose Guest

    How do I set the alignment on a TextField to RIGHT for number input???
    Thanks
    Dick
     
    Dick Roose, Jun 16, 2004
    #1
    1. Advertising

  2. Dick Roose

    Roedy Green Guest

    On 16 Jun 2004 11:28:03 -0700, (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.
     
    Roedy Green, Jun 16, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Remco Groot Beumer

    How to read input from a textfield in a datagrid !?!

    Remco Groot Beumer, Nov 6, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    314
    Remco Groot Beumer
    Nov 6, 2003
  2. Soul
    Replies:
    0
    Views:
    398
  3. Jerome
    Replies:
    2
    Views:
    427
    Trevor Benedict R
    Mar 14, 2005
  4. =?Utf-8?B?TUw=?=

    Can HMTLInputFile textfield be readonly?

    =?Utf-8?B?TUw=?=, Apr 5, 2005, in forum: ASP .Net
    Replies:
    1
    Views:
    337
  5. prefersgolfing

    remove "_" from TextField="#InnerText"

    prefersgolfing, Dec 20, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    429
    prefersgolfing
    Dec 20, 2005
Loading...

Share This Page