mirror of
https://github.com/LucasVbr/data-encryption-standard.git
synced 2026-12-05 15:30:50 +00:00
Ui Interface
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user