Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Gui problem with JTextField when setting double value to it

Status
Not open for further replies.

VenkatRastapuram

Programmer
Oct 24, 2003
46
IN
Hi,

I declared a variable of type double and doing a arithmatic operation like addition and after the operation and setting the calculated value to a JTextField. I am useing Decimal_Format to fix the precesion to two decimal places. But this is not working properly. When we start the application it is first displaying its value with two decimal places but as soon as I remove the focus from the text box the value in the text box is changed to the decimal value with no fixed precesion.

Best Regards,
R.Venkatesh
Ocimum Biosolutions,
 
Any chance of posting some of you code to help us help you?

Tim
---------------------------
"Your morbid fear of losing,
destroys the lives you're using." - Ozzy
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top