public class BasicInvalidKeyFeedback extends BasicFeedback implements InvalidKeyFeedback
SafeKeyProvider.MIN_KEY_RETRY_DELAY
milliseconds when prompting for a key and the last input was invalid.
Note that the root pane is normally the root pane of a parent JOptionPane which has the OK button set as its default button. This is to inhibit the use of a GUI robot for exhaustive password searching.
Modifier | Constructor and Description |
---|---|
|
BasicInvalidKeyFeedback() |
protected |
BasicInvalidKeyFeedback(int duration)
Constructs a new run.
|
public BasicInvalidKeyFeedback()
protected BasicInvalidKeyFeedback(int duration)
duration
- the duration for disabling the default button in the
root pane in milliseconds.public void run(JPanel panel)
BasicFeedback
Timer
class should be used to schedule timer events
for the animation.
The implementation in this class simply beeps using the default toolkit.
run
in interface Feedback
run
in class BasicFeedback
panel
- the panel to provide visual/audible run to.Copyright © 2005–2018 Schlichtherle IT Services. All rights reserved.