Is there anyway I can right-align text in a TextField?

John Zukowski

The AWT TextField doesn't support alignment. The Swing JTextField does. If you can, consider using it, instead.


jTextField.setHorizontalAlignment(JTextField.RIGHT);
0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact