javi
Class Javi2Applet
- public class Javi2Applet
- extends Applet
Title: JaVi Applet
Description: The class implementing the JaVi applet. It requires the Vigenere and the FrequenzaNijk objects
Copyright: Copyright (c) 2002 Pierre Blanc
Company: Teutoburgo
- Version:
- 0.8
- Author:
- Pierre Blanc
Javi2Applet
public Javi2Applet()
- Construct the applet
getParameter
public String getParameter(String key,
String def)
- Get a parameter value
- Parameters:
key
-
def
-
- Returns:
- the value
init
public void init()
- Initialize the applet
jbInit
private void jbInit()
- Component initialization
- Throws:
Exception
-
getAppletInfo
public String getAppletInfo()
- Get Applet information
- Returns:
- the applet information
getParameterInfo
public String[][] getParameterInfo()
- Get parameter info
- Returns:
- parameter info
keyStrength
void keyStrength()
- Richiama il metodo getKSPerCent dell'oggetto Vigenere e colora la labelGauge3 di rosso, giallo o verde a seconda della percentuale
Calls the getKSPerCent method of the Vigenere object and fills the labelGauge3 of ref, yellow or green depending of the percentual value
keyLength
void keyLength()
- Controlla che la chiave non sia piu' corta della frase; in tal caso stampa il messaggio "Key Short!" ("Chiave corta!")
Checks if the key is shorter than the phrase; if so, prints the message "Key Short!"
buttonItaliano_mousePressed
void buttonItaliano_mousePressed(MouseEvent e)
- Imposta il linguaggio italiano alla pressione del buttonItaliano
Sets the italian language when buttonItaliano is pressed
- Parameters:
e
- the MouseEvent
buttonCrypt_mouseClicked
void buttonCrypt_mouseClicked(MouseEvent e)
- Richiama il metodo getEncryptedPhrase dell'oggetto Vigenere alla pressione del buttonCrypt
Calls the method getEncryptedPhrase of the Vigenere object when buttonCrypt is pressed
- Parameters:
e
- the MouseEvent
buttonDecrypt_mouseClicked
void buttonDecrypt_mouseClicked(MouseEvent e)
- Richiama il metodo getPhrase dell'oggetto Vigenere alla pressione del buttonDecrypt
Calls the method getPhrase of the Vigenere object when buttonDecrypt is pressed
- Parameters:
e
- the MouseEvent
buttonEnglish_mouseClicked
void buttonEnglish_mouseClicked(MouseEvent e)
- Richiama il metodo englishVersion alla pressione del buttonEnglish
Calls the englishVersion method when buttonEnglish is pressed
- Parameters:
e
- the MouseEvent
englishVersion
void englishVersion()
- Imposta il linguaggio inglese
Sets the english language