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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Function like setText() (awt.Label) for data type double 1

Status
Not open for further replies.

aas1611

Programmer
Joined
Dec 14, 2001
Messages
184
Location
DE
Hi!

I received an error message that says, setText() cannot be applied to double. My codes look like this:

import java.awt.*;
. . .
private Label status;
private double money;
. . .
money = 99.99;
status.setText(money);
. . .

Is there a function under Label for double data type? If no, how can "money" appear on "status" component?

Thanks for any hint!
 
status.setText(money +"");


--------------------------------------------------
Free Java/J2EE Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top