public void setPertemuanPraktikum( PertemuanPraktikum pertemuanPraktikum, Mahasiswa mhs, Setting setting) throws RemoteException { if (setting.getMenit() == 0) { h = setting.getJam() - 1; m = 59; } else { h = setting.getJam(); m = setting.getMenit() - 1; } this.pertemuanPraktikum = pertemuanPraktikum; this.mhs = mhs; bsPretestService = MainFrameClient.getBsPretestService(); this.setting = setting; soalBsList = bsPretestService.findSoalBss(pertemuanPraktikum); soalBsList = setRandomSoal(soalBsList); jumlahSoal = soalBsList.size(); noSoal = 0; textNo.setText((noSoal + 1) + ""); textSoal.setText(soalBsList.get(noSoal).getSoal()); ActionListener al = new ActionListener() { @Override public void actionPerformed(ActionEvent ae) { try { setDuration(); } catch (RemoteException ex) { Logger.getLogger(PanelTestBs.class.getName()).log(Level.SEVERE, null, ex); } } }; new Timer(1000, al).start(); }