private void method2() { if (stopWatch2.isStarted()) { stopWatch2.resume(); } else { stopWatch2.start(); } try { Thread.sleep(1000); } catch (Exception e) {; } stopWatch2.suspend(); }