Automated code formatting by NetBeans IDE.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2529 3789f03b-4d11-0410-bbf8-ca57d06f2519
diff --git a/java/src/com/tightvnc/rfbplayer/ButtonPanel.java b/java/src/com/tightvnc/rfbplayer/ButtonPanel.java
index 8b062e8..95a7eb6 100644
--- a/java/src/com/tightvnc/rfbplayer/ButtonPanel.java
+++ b/java/src/com/tightvnc/rfbplayer/ButtonPanel.java
@@ -52,8 +52,7 @@
timeScaleText.addActionListener(this);
}
- public void setPaused(boolean paused)
- {
+ public void setPaused(boolean paused) {
if (paused) {
playButton.setLabel("Play");
} else {
@@ -69,7 +68,7 @@
char[] zeroes = {'0', '0', '0', '0'};
String text = String.valueOf(seconds);
if (text.length() < 4) {
- text = new String(zeroes, 0, 4 - text.length()) + text;
+ text = new String(zeroes, 0, 4 - text.length()) + text;
}
posText.setText(text);
posText.setCaretPosition(text.length());
@@ -79,7 +78,6 @@
//
// Event processing.
//
-
public void actionPerformed(ActionEvent evt) {
if (evt.getSource() == playButton) {
player.setPaused(playButton.getLabel().equals("Pause"));
@@ -88,10 +86,11 @@
} else if (evt.getSource() == timeScaleText) {
double speed = Double.valueOf(timeScaleText.getText()).doubleValue();
if (speed <= 0.0)
- speed = 1.0;
+ speed = 1.0;
timeScaleText.setText(String.valueOf(speed));
player.setSpeed(speed);
}
}
+
}