Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Textfields  RSS feed

 
Philip Pross
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was wondering why when I use decimal format it doesn't work with textfield? , but with systems outs it does!! I'm using:
DecimalFormat df = new DecimalFormat("##0.00");
Even with this, if the last digit is a zero its not show.
And is there a way to force the numbers to the right side of textfields.
 
Suneel Setlur
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Check it up
here . You right-justify the text field then you get numbers at the right.
Hope it helps
Suneel


[This message has been edited by Suneel Setlur (edited February 02, 2001).]
 
Philip Pross
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks alot
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!