]> source.dussan.org Git - tigervnc.git/commitdiff
Calls to methods not supported by JDK 1.1 were removed.
authorConstantin Kaplinsky <const@tightvnc.com>
Tue, 4 Jun 2002 18:29:05 +0000 (18:29 +0000)
committerConstantin Kaplinsky <const@tightvnc.com>
Tue, 4 Jun 2002 18:29:05 +0000 (18:29 +0000)
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2519 3789f03b-4d11-0410-bbf8-ca57d06f2519

java/src/com/tightvnc/rfbplayer/ButtonPanel.java
java/src/com/tightvnc/rfbplayer/RfbPlayer.java

index 3b4f2756ba9cf919b95cd8c325ea0e413c9caa04..3b2d52f521ea41928c3c9a7644384975d5cfb5cf 100644 (file)
@@ -88,7 +88,7 @@ class ButtonPanel extends Panel implements ActionListener {
     } else if (evt.getSource() == posText) {
       player.setPos(Long.parseLong(posText.getText()) * 1000);
     } else if (evt.getSource() == timeScaleText) {
-      double speed = Double.parseDouble(timeScaleText.getText());
+      double speed = Double.valueOf(timeScaleText.getText()).doubleValue();
       if (speed <= 0.0)
        speed = 1.0;
       timeScaleText.setText(String.valueOf(speed));
index 5463bffa0291da8ecadf1ed662e36c9008fef741..1da501c2dfa7d279ea377c69c4c0330d4a527449 100644 (file)
@@ -283,7 +283,7 @@ public class RfbPlayer extends java.applet.Applet
     double result = defaultValue;
     if (str != null) {
       try {
-       result = Double.parseDouble(str);
+       result = Double.valueOf(str).doubleValue();
       } catch (NumberFormatException e) { }
     }
     return result;