debut connexion
This commit is contained in:
parent
e7a2297077
commit
5edb39bd52
4 changed files with 54 additions and 3 deletions
18
POO/src/main/ControleurConnexion.java
Normal file
18
POO/src/main/ControleurConnexion.java
Normal file
|
@ -0,0 +1,18 @@
|
|||
package main;
|
||||
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
|
||||
public class ControleurConnexion implements ActionListener {
|
||||
|
||||
private VueConnexion vue;
|
||||
|
||||
public ControleurConnexion(VueConnexion vue) {
|
||||
this.vue = vue;
|
||||
}
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
|
||||
}
|
||||
|
||||
}
|
|
@ -1,10 +1,18 @@
|
|||
package main;
|
||||
|
||||
public class Main {
|
||||
import javax.swing.JFrame;
|
||||
import javax.swing.JPanel;
|
||||
|
||||
public class Main extends JPanel{
|
||||
|
||||
public static void main(String[] args) {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
|
||||
Vue vc = new VueConnexion();
|
||||
JFrame fenetre = new JFrame("Connexion");
|
||||
|
||||
fenetre.add(vc);
|
||||
fenetre.setSize(500, 500);
|
||||
fenetre.setVisible(true);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
15
POO/src/main/Vue.java
Normal file
15
POO/src/main/Vue.java
Normal file
|
@ -0,0 +1,15 @@
|
|||
package main;
|
||||
|
||||
import javax.swing.JPanel;
|
||||
|
||||
public class Vue extends JPanel{
|
||||
|
||||
public Vue() {
|
||||
// TODO Auto-generated constructor stub
|
||||
}
|
||||
|
||||
public void reduireAgent() {}
|
||||
|
||||
public void fermerAgent() {}
|
||||
|
||||
}
|
10
POO/src/main/VueConnexion.java
Normal file
10
POO/src/main/VueConnexion.java
Normal file
|
@ -0,0 +1,10 @@
|
|||
package main;
|
||||
|
||||
public class VueConnexion extends Vue {
|
||||
|
||||
public VueConnexion() {
|
||||
super();
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in a new issue