de.schlichtherle.key.passwd.swing
Class BasicInvalidCreateKeyFeedback
java.lang.Object
de.schlichtherle.key.passwd.swing.BasicFeedback
de.schlichtherle.key.passwd.swing.BasicInvalidKeyFeedback
de.schlichtherle.key.passwd.swing.BasicInvalidCreateKeyFeedback
- All Implemented Interfaces:
- Feedback, Runnable
public class BasicInvalidCreateKeyFeedback
- extends 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 to create or overwrite a protected resource
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).
- Since:
- TrueZIP 6.4
- Version:
- $Id: BasicInvalidCreateKeyFeedback.java,v 1.4 2010/08/20 13:09:39 christian_schlichtherle Exp $
- Author:
- Christian Schlichtherle
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicInvalidCreateKeyFeedback
public BasicInvalidCreateKeyFeedback()
Copyright © 2005-2010 Schlichtherle IT Services. All Rights Reserved.