apl/APL2.1/TP6_Dessin/tp06/Ex3.java

33 lines
864 B
Java
Raw Permalink Normal View History

2022-01-14 06:54:18 +01:00
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);
}
}