apl/APL2.1/TP6_Dessin/tp06/Ex3.java
unknown d9949b5cb0 a
2022-01-14 06:54:18 +01:00

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);
}
}