import java.awt.TextArea; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JComboBox; import javax.swing.JFrame; import javax.swing.JScrollPane; import javax.swing.JTextArea; import algorithmus.Algorithmus; import algorithmus.Autokey; import algorithmus.Blabla; import algorithmus.Caesar; import algorithmus.Case; import algorithmus.Palisaden; import algorithmus.Vigenere; import algorithmus.XOR; import algorithmus.Zaehlen; public class Mainframe extends JFrame { private JTextArea input, output; private JScrollPane scrollInput, scrollOutput; private JComboBox combo; private JButton options, encode, decode; private Algorithmus[] algo = new Algorithmus[] { new Case(), new Caesar(), new Blabla(), new Zaehlen(), new Vigenere(), new XOR(), new Autokey(), new Palisaden() }; public Mainframe() { this.setLayout(null); this.setResizable(false); this.setTitle("Kryptographie"); this.setSize(500, 500); input = new JTextArea(); input.setLineWrap(true); scrollInput = new JScrollPane(input); scrollInput.setBounds(5, 5, 470, 205); output = new JTextArea(); output.setEditable(false); output.setLineWrap(true); scrollOutput = new JScrollPane(output); scrollOutput.setBounds(5, 245, 470, 205); String[] names = new String[algo.length]; for(int i = 0; i