• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTextField in applet problem

 
kinzur manye
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok say i have the following code

How do i make it so that in those text fields that the data right aligns instead of left aligns?
 
Andrew Reinartz
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i'm not sure (i'm new to java myself), but i think this might work for you.
 
kinzur manye
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried that with
AmountField.setHorizontalAlignment(RIGHT);
and it did not work but i put a 1 in there and it centered the data enter but i could never get it to go all the way to the right.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic