33 lines
864 B
Java
33 lines
864 B
Java
|
import javax.swing.*;
|
||
|
import java.awt.*;
|
||
|
|
||
|
public class Ex3
|
||
|
{
|
||
|
public static void main(String[] args)
|
||
|
{
|
||
|
JFrame fenetre = new JFrame();
|
||
|
|
||
|
fenetre.setSize(285, 210);
|
||
|
fenetre.setMinimumSize(new Dimension(285, 210));
|
||
|
fenetre.setLocation(100, 100);
|
||
|
fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||
|
fenetre.setLayout(null);
|
||
|
|
||
|
Accueil acc = new Accueil();
|
||
|
acc.setLocation(0, 0);
|
||
|
acc.setSize(285, 210);
|
||
|
fenetre.add(acc);
|
||
|
|
||
|
JTextField userField = new JTextField();
|
||
|
userField.setLocation(110, 90);
|
||
|
userField.setSize(150, 25);
|
||
|
fenetre.add(userField);
|
||
|
|
||
|
JTextField passField = new JTextField();
|
||
|
passField.setLocation(110, 130);
|
||
|
passField.setSize(150, 25);
|
||
|
fenetre.add(passField);
|
||
|
|
||
|
fenetre.setVisible(true);
|
||
|
}
|
||
|
}
|