daily pastebin goal
87%
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  @Override
  2.     public void handle(ActionEvent event) {
  3.         String keyString = textFieldN.getText();
  4.         int count = keyString.length() - keyString.replace("-", "").length();
  5.         int[] key;
  6.         System.out.println(count + " ilosc myslnikow");
  7.  
  8.         if (event.getSource().equals(buttonCipher)) {
  9.             key = keyReader(keyString);
  10.             String coded = transpositionCipher.encrypttrans(textFieldWord.getText(), key);
  11.             label.setText(coded);
  12.         }
  13.  
  14.         if (event.getSource().equals(buttonDeCipher)) {
  15.             key = keyReader(keyString);
  16.             String uncoded = transpositionCipher.decrypttrans(textFieldWord.getText(), key);
  17.             label.setText(uncoded);
  18.         }
  19.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top