- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMainMenu.java
More file actions
Latest commit
89 lines (69 loc) · 3.61 KB
/
Copy pathMainMenu.java
File metadata and controls
89 lines (69 loc) · 3.61 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
packageMenu;
importtests.ApprentissageSingleNeurone;
importtests.EntrainementDoubleNeurone;
importtests.PredictWav;
importtests.BatchTest;
importtests.AfficheurFFTConsole;
importtests.AfficheurFFTGraphique;
importtests.CourbeMSE;
importjavax.swing.*;
importjava.awt.*;
importjava.awt.event.ActionEvent;
publicclassMainMenu {
publicstaticvoidmain(String[] args) {
SwingUtilities.invokeLater(() -> {
JFrameframe = newJFrame("Menu Principal");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(400, 800);
frame.setLayout(newGridLayout(0, 1, 10, 10));
frame.add(newJLabel("=== MENU ===", SwingConstants.CENTER));
JButtonbtn1 = newJButton("1. Apprentissage + Test global (single neurone)");
btn1.addActionListener((ActionEvente) -> ApprentissageSingleNeurone.main(null));
frame.add(btn1);
JButtonbtn2 = newJButton("2. Afficher FFT d'un fichier WAV (console)");
btn2.addActionListener((ActionEvente) -> AfficheurFFTConsole.main(null));
frame.add(btn2);
JButtonbtn3 = newJButton("3. Visualiser FFT (fenêtre graphique)");
btn3.addActionListener((ActionEvente) -> AfficheurFFTGraphique.main(null));
frame.add(btn3);
JButtonbtn4 = newJButton("4. Prédire un fichier WAV (chat ou chien)");
btn4.addActionListener((ActionEvente) -> PredictWav.main(null));
frame.add(btn4);
JButtonbtn5 = newJButton("5. Afficher la courbe d'évolution du MSE (fenêtre)");
btn5.addActionListener((ActionEvente) -> CourbeMSE.main(null));
frame.add(btn5);
JButtonbtn6 = newJButton("6. Entraîner ET tester en Double Neurone");
btn6.addActionListener((ActionEvente) -> EntrainementDoubleNeurone.main(null));
frame.add(btn6);
JButtonbtn7 = newJButton("7. Batch Test");
btn7.addActionListener((ActionEvente) -> BatchTest.main(null));
frame.add(btn7);
JButtonbtn8 = newJButton("8. Expériences FFT (rapport)");
btn8.addActionListener((ActionEvente) -> tests.FFTExperimentsReport.main(null));
frame.add(btn8);
JButtonbtn9 = newJButton("9. FFT Variation");
btn9.addActionListener((ActionEvente) -> tests.FFTVariation.main(null));
frame.add(btn9);
JButtonbtn10 = newJButton("10. Plage de fréquences FFT");
btn10.addActionListener((ActionEvente) -> tests.FrequencyRange.main(null));
frame.add(btn10);
JButtonbtn11 = newJButton("11. Robustesse bruit");
btn11.addActionListener((ActionEvente) -> tests.NoiseRobustness.main(null));
frame.add(btn11);
JButtonbtn12 = newJButton("12. Test logique");
btn12.addActionListener((ActionEvente) -> tests.LogicTest.main(null));
frame.add(btn12);
JButtonbtn13 = newJButton("13. Test Réseau (multi-couches)");
btn13.addActionListener((ActionEvente) -> tests.testReseau.main(null));
frame.add(btn13);
JButtonbtn14 = newJButton("14. FFT Interactive");
btn14.addActionListener((ActionEvente) -> tests.AfficheurFFTInteractif.main(null));
frame.add(btn14);
JButtonbtnQuit = newJButton("0. Quitter");
btnQuit.addActionListener((ActionEvente) -> System.exit(0));
frame.add(btnQuit);
frame.setLocationRelativeTo(null);
frame.setVisible(true);
});
}
}