Commit 6018e1cb authored by Jolan RENOUX's avatar Jolan RENOUX
Browse files

Merge remote-tracking branch 'origin/master' into master

parents 59c6362e 3125b20c
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_14" project-jdk-name="14" project-jdk-type="JavaSDK">
<component name="ProjectRootManager" version="2" languageLevel="JDK_14" project-jdk-name="15" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>
\ No newline at end of file
......@@ -8,6 +8,8 @@ import java.awt.*;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class FenetreConnexion extends JFrame {
private JTextField pseudo;
......@@ -58,7 +60,16 @@ public class FenetreConnexion extends JFrame {
zoneMessage.setPreferredSize(new Dimension(100,100));
bas.add(zoneMessage,BorderLayout.SOUTH);
rejoindre.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
FenetreJeux fJeux = new FenetreJeux();
fJeux.setPreferredSize(new Dimension(700, 700));
fJeux.pack();
fJeux.setVisible(true);
}
});
principal.add(bas,BorderLayout.SOUTH);
......
package vue;
import javax.swing.*;
import java.awt.*;
public class FenetreJeux extends JFrame {
public FenetreJeux() {
super();
JPanel principal = new JPanel(new BorderLayout());
this.setContentPane(principal);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment