mirror of
https://github.com/LucasVbr/data-encryption-standard.git
synced 2026-12-05 15:30:50 +00:00
28 lines
670 B
Java
28 lines
670 B
Java
package ui;
|
|
|
|
import javax.swing.*;
|
|
|
|
public class App extends JFrame {
|
|
private JPanel mainPanel;
|
|
private JButton desButton, tripleDesButton, quitterButton;
|
|
|
|
public App() {
|
|
super("Projet Cryptographie");
|
|
|
|
this.add(mainPanel);
|
|
|
|
// Actions
|
|
desButton.addActionListener(e -> new FenetreDes());
|
|
tripleDesButton.addActionListener(e -> new FenetreTripleDes());
|
|
quitterButton.addActionListener(e -> System.exit(0));
|
|
|
|
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
|
this.setSize(400, 250);
|
|
this.setVisible(true);
|
|
}
|
|
|
|
public static void main(String[] args) {
|
|
new App();
|
|
}
|
|
}
|