TP
This commit is contained in:
BIN
DEV2.1/TP06/Test.class
Normal file
BIN
DEV2.1/TP06/Test.class
Normal file
Binary file not shown.
19
DEV2.1/TP06/Test.java
Normal file
19
DEV2.1/TP06/Test.java
Normal file
@@ -0,0 +1,19 @@
|
||||
import java.awt.*;
|
||||
import javax.swing.*;
|
||||
|
||||
public class Test {
|
||||
public static void main(String[] args) {
|
||||
JFrame fenetre = new JFrame();
|
||||
fenetre.setSize(300, 200);
|
||||
fenetre.setLocation(100, 100);
|
||||
fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
|
||||
JLabel texte = new JLabel("L'alcool c'est pas bien");
|
||||
texte.setHorizontalAlignment(JLabel.CENTER);
|
||||
texte.setFont(new Font("Arial", Font.BOLD, 35));
|
||||
fenetre.setLayout(new BorderLayout());
|
||||
fenetre.add(texte, BorderLayout.CENTER);
|
||||
fenetre.setVisible(true);
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user