< prev index next >

test/jdk/java/awt/regtesthelpers/PassFailJFrame.java

Print this page
*** 45,10 ***
--- 45,11 ---
  import java.lang.reflect.InvocationTargetException;
  import java.util.ArrayList;
  import java.util.Arrays;
  import java.util.Collection;
  import java.util.List;
+ import java.util.Locale;
  import java.util.Objects;
  import java.util.concurrent.CountDownLatch;
  import java.util.concurrent.TimeUnit;
  import java.util.concurrent.atomic.AtomicInteger;
  

*** 540,11 ***
                  return;
              }
              long hours = leftTime / 3_600_000;
              long minutes = (leftTime - hours * 3_600_000) / 60_000;
              long seconds = (leftTime - hours * 3_600_000 - minutes * 60_000) / 1_000;
!             label.setText(String.format("Test timeout: %02d:%02d:%02d",
                                          hours, minutes, seconds));
          }
  
          public void stop() {
              timer.stop();
--- 541,12 ---
                  return;
              }
              long hours = leftTime / 3_600_000;
              long minutes = (leftTime - hours * 3_600_000) / 60_000;
              long seconds = (leftTime - hours * 3_600_000 - minutes * 60_000) / 1_000;
!             label.setText(String.format(Locale.ENGLISH,
+                                         "Test timeout: %02d:%02d:%02d",
                                          hours, minutes, seconds));
          }
  
          public void stop() {
              timer.stop();
< prev index next >