Logo Search packages:      
Sourcecode: pauker version File versions  Download package

final Timer pauker::program::gui::swing::PaukerFrame::ustmTimer [private]

Initial value:

 new Timer(1000, new ActionListener() {

        public void actionPerformed(ActionEvent evt) {
            currentUSTMTime++;
            if (currentUSTMTime < getUstmTime()) {
                ustmTimerProgressBar.setValue((100 * currentUSTMTime) / getUstmTime());
                ustmTimerProgressBar.setString(currentUSTMTime + " / " + getUstmTime() + " " + STRINGS.getString("Seconds"));
            } else {
                ustmTimer.stop();
                ustmTimerProgressBar.setValue(0);
                ustmTimerProgressBar.setString("");
                if (Pauker.getLearningPhase() == Pauker.LearningPhase.WAITING_FOR_USTM) {
                    setState(Frame.NORMAL);
                    toFront();
                    defautToolkit.beep();
                    if (isPlayRingTone()) {
                        ringTone.play();
                    }
                    repeatUSTMCards();
                }
            }
        }
    })

Definition at line 168 of file PaukerFrame.java.


Generated by  Doxygen 1.6.0   Back to index