Hi Experts,
I have a snap shot of a simple code where I got a value from an entry from
the user via the applet. Then parse it to double so that I can add +2.
After that, I want to re-display at a text field. I did String.valueOf
(strm_len).
if (evt.getSource()== computeITX && choice1.getSelectedItem()=="6
Strm" ) {
String length_ans = textFieldUnitMtrs.getText();
String output = "null";
double strm_len = Double.parseDouble(length_ans);
strm_len = strm_len + 2;
output = String.valueOf(strm_len);
textFieldUnitNum.setText(output);
repaint();
It works fine on my local machine (JBuilder) and also the appletviewer BUT
when I load up to the server, it doesn't work. Can anyone comment on my
code or where I went wrong? Both IE and Netscape have no response when I
execute it. What are the options to parse/cast a double to String for a
textfield display???
Thanks in advance.
Regards,
Michael Tang
To change your membership options, refer to:
http://www.sys-con.com/java/list.cfm