Here's a Tutorial Feedback comment:
name: Rene Grothmann
email: ###@###.###
referer: CelsiusConverter2.java
subject: Technical Error
comments: The example will not run in German, and probably other foreign systems.
This is because tempCelsius passes the string as e.g. "37,0" to Double.parseDouble(). A NumberFormatException will be thrown on line 92 of the source code.
Rene is correct. The problem is that parseDouble isn't localizable. The new Scanner object is more appropriate. Besides, there's no reason to accept floating point input, since the example always produces integer output. All Swing examples should be examined for these issues. We do not want to promote bad coding practices.
name: Rene Grothmann
email: ###@###.###
referer: CelsiusConverter2.java
subject: Technical Error
comments: The example will not run in German, and probably other foreign systems.
This is because tempCelsius passes the string as e.g. "37,0" to Double.parseDouble(). A NumberFormatException will be thrown on line 92 of the source code.
Rene is correct. The problem is that parseDouble isn't localizable. The new Scanner object is more appropriate. Besides, there's no reason to accept floating point input, since the example always produces integer output. All Swing examples should be examined for these issues. We do not want to promote bad coding practices.