This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Applets and the fly likes JTextField input.... Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Applets
Reply locked New topic
Author

JTextField input....

robin singal
Ranch Hand

Joined: Jul 18, 2007
Posts: 102
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


Life is short play hard.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41068
    
  43
Duplicate of this thread.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JTextField input....
 
Similar Threads
Putting data into JTextField
setting text in a JTextField
JTextField input....
JTextField does not refresh
First Japplet and having issue refreshing output