TrueZIP 6.8.3

de.schlichtherle.key.passwd.swing
Class BasicInvalidCreateKeyFeedback

java.lang.Object
  extended by de.schlichtherle.key.passwd.swing.BasicFeedback
      extended by de.schlichtherle.key.passwd.swing.BasicInvalidKeyFeedback
          extended by 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
Author:
Christian Schlichtherle

Constructor Summary
BasicInvalidCreateKeyFeedback()
           
 
Method Summary
 
Methods inherited from class de.schlichtherle.key.passwd.swing.BasicInvalidKeyFeedback
getDelay, setDelay, startAnimation, startAnimation
 
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

BasicInvalidCreateKeyFeedback

public BasicInvalidCreateKeyFeedback()

TrueZIP 6.8.3

Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.