DEV/DEV2.1/TP1:ComposantsGraphiques/Sirocco.java

16 lines
499 B
Java
Raw Permalink Normal View History

2023-02-13 11:29:17 +01:00
import javax.swing.*;
import java.awt.*;
public class Sirocco {
public static void main(String[] args) {
JFrame fenetre = new JFrame();
fenetre.setSize(500, 300);
fenetre.setLocation(0, 0);
fenetre.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JLabel etiquette = new JLabel("Sirocco");
etiquette.setHorizontalAlignment(JLabel.RIGHT);
etiquette.setVerticalAlignment(JLabel.BOTTOM);
fenetre.add(etiquette, BorderLayout.CENTER);
fenetre.setVisible(true);
}
}