TrueZIP 6.8

de.schlichtherle.key.passwd.swing
Class BasicInvalidOpenKeyFeedback

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.BasicInvalidOpenKeyFeedback
All Implemented Interfaces:
Feedback, OpenKeyFeedback, Runnable

public class BasicInvalidOpenKeyFeedback
extends BasicInvalidKeyFeedback
implements OpenKeyFeedback

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 open an existing 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.2
Version:
$Id: BasicInvalidOpenKeyFeedback.java,v 1.4 2010/08/20 13:09:39 christian_schlichtherle Exp $
Author:
Christian Schlichtherle

Constructor Summary
BasicInvalidOpenKeyFeedback()
           
 
Method Summary
 
Methods inherited from class de.schlichtherle.key.passwd.swing.BasicInvalidKeyFeedback
getDelay, setDelay, 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
 
Methods inherited from interface de.schlichtherle.key.passwd.swing.Feedback
getPanel, run, setPanel
 

Constructor Detail

BasicInvalidOpenKeyFeedback

public BasicInvalidOpenKeyFeedback()

TrueZIP 6.8

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