BUT2/DEV/DEV2.1/TP06_Dessin/Q3_Acceuil/Q3Main.java

29 lines
732 B
Java
Raw Normal View History

2023-10-23 13:23:36 +02:00
import javax.swing.*;
import java.awt.*;
public class Q3Main{
public static void main(String[] args) {
JFrame fenetre = new JFrame("Acceuil");
fenetre.setLocation(100, 100);
fenetre.setSize(288,223);
fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
fenetre.setLayout(null);
AfficheImage fond = new AfficheImage("login.jpg");
fond.setSize(278,183);
fond.setLocation(0,5);
JTextField identifiant = new JTextField();
identifiant.setSize(150,29);
identifiant.setLocation(110,95);
JTextField motDePasse = new JTextField();
motDePasse.setSize(150,29);
motDePasse.setLocation(110,135);
fenetre.add(fond);
fenetre.add(identifiant);
fenetre.add(motDePasse);
fenetre.setVisible(true);
}
}