|
TrueZIP 6.8 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.schlichtherle.key.passwd.swing.BasicFeedback
de.schlichtherle.key.passwd.swing.BasicInvalidKeyFeedback
public abstract class BasicInvalidKeyFeedback
Provides feedback by beeping using the default toolkit and disabling the default button in the root pane for three seconds when prompting for a key and the last input was invalid.
Note that the root pane is normally the root pane of an enclosing 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.
If you would like to play a nice sound for feedback, you need to override
the BasicFeedback.startSound() method.
Warning: Playing a java.applet.AudioClip on J2SE
1.4.2_12 causes a client application not to terminate until System.exit(0)
is called explicitly - hence this feature is currently not implemented in
this class!
This issue is fixed in JSE 1.5.0_07 (and probably earlier versions).
| Constructor Summary | |
|---|---|
BasicInvalidKeyFeedback()
|
|
| Method Summary | |
|---|---|
int |
getDelay()
Returns the delay for reenabling the default button in the root pane. |
void |
setDelay(int delay)
Sets the delay for reenabling the default button in the root pane. |
protected void |
startAnimation()
Starts the visual feedback. |
| Methods inherited from class de.schlichtherle.key.passwd.swing.BasicFeedback |
|---|
getPanel, run, setPanel, startSound |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BasicInvalidKeyFeedback()
| Method Detail |
|---|
public int getDelay()
KeyProvider.MIN_KEY_RETRY_DELAY.public void setDelay(int delay)
delay - The delay in milliseconds.protected void startAnimation()
BasicFeedbackTimer class should be used to schedule timer events
for the animation.
The implementation in this class is a no-op.
startAnimation in class BasicFeedback
|
TrueZIP 6.8 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||