update
This commit is contained in:
17
DEV.2.1/TP/TP2-CompGraphique/Sirocco.java
Normal file
17
DEV.2.1/TP/TP2-CompGraphique/Sirocco.java
Normal file
@@ -0,0 +1,17 @@
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
|
||||
public class Sirocco {
|
||||
public static void main(String[] args) {
|
||||
JFrame fenetre = new JFrame("Sirocco");
|
||||
fenetre.setSize(500, 300);
|
||||
fenetre.setLocation(100, 100);
|
||||
fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
JLabel etiquette = new JLabel("Sirocco");
|
||||
etiquette.setHorizontalAlignment(JLabel.BOTTOM_ALIGNMENT);
|
||||
fenetre.add(etiquette, BorderLayout.CENTER);
|
||||
fenetre.setVisible(true);
|
||||
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user