Bookmark Topic Watch Topic
  • New Topic

JTextField input....

 
robin singal
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Report post to moderator
hi

i have a JTextField and want only integer input in it using setText() method.
So what do i put in setText to do that??
for decimal input i used : taxChrBusTxt.setText(taxDecFormatter.format(chrBusInc));

taxDecFormatter is object of type DecimalFormat...

thanks
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Report post to moderator
Duplicate of this thread.
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic