Commit 665f505a authored by Jérémie's avatar Jérémie
Browse files

actionlistener vers fenetre jeux

parent 34f868ef
<?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);
......
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