moitié tp 3
This commit is contained in:
14
DEV2.1/Graphique/Sirocco.java
Normal file
14
DEV2.1/Graphique/Sirocco.java
Normal file
@@ -0,0 +1,14 @@
|
||||
import javax.swing.*;
|
||||
import java.awt.*;
|
||||
|
||||
public class Sirocco {
|
||||
public static void main(String[] args) {
|
||||
JFrame fenetre = new JFrame();
|
||||
fenetre.setSize(500, 300);
|
||||
fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||
JLabel etiquette = new JLabel("Sirocco");
|
||||
etiquette.setHorizontalAlignment(JLabel.RIGHT);
|
||||
fenetre.add(etiquette, BorderLayout.NORTH);
|
||||
fenetre.setVisible(true);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user