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!
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!