This commit is contained in:
Emmanuel Srivastava
2025-01-28 15:57:06 +01:00
parent ca261102e6
commit 1d439aff05
5 changed files with 65 additions and 16 deletions

View File

@@ -5,10 +5,12 @@ 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);
etiquette.setHorizontalAlignment(JLabel.LEFT);
etiquette.setVerticalAlignment(JLabel.BOTTOM);
fenetre.add(etiquette, BorderLayout.CENTER);
fenetre.setVisible(true);