1 Replies - 325 Views - Last Post: 27 December 2012 - 08:55 PM Rate Topic: -----

#1 tieugiang94  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 160
  • Joined: 07-December 11

How to margin text in textfield

Posted 27 December 2012 - 08:51 PM

Normally, The Text in textfield border stand side by side.
How to margin text with textfield left border ?
Is This A Good Question/Topic? 0
  • +

Replies To: How to margin text in textfield

#2 macosxnerd101  Icon User is offline

  • Self-Trained Economist
  • member icon




Reputation: 10461
  • View blog
  • Posts: 38,753
  • Joined: 27-December 08

Re: How to margin text in textfield

Posted 27 December 2012 - 08:55 PM

The JTextField class has a setHorizontalAlignment() method you can use. Is this what you are looking for?

http://docs.oracle.c...JTextField.html
Was This Post Helpful? 2
  • +
  • -

Page 1 of 1