This commit is contained in:
Emmanuel Srivastava
2025-01-28 13:05:38 +01:00
parent 129f22e543
commit 9afcd3fbfd
4 changed files with 66 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
import javax.swing.*;
import java.awt.*;
public class Boutons
{
public static void main(String[] args)
{
JFrame frame = new JFrame("Boutons");
JButton btn1 = new JButton("Luc Hernandez prof de DEV");
btn1.setBounds(100,100,100,40);
JButton btn2 = new JButton("Pierre");
btn2.setBounds(50,100,100,40);
JButton btn3 = new JButton("Louqa");
btn3.setBounds(150,100,100,40);
JButton btn4 = new JButton("ok");
btn4.setBounds(200,100,100,40);
JButton btn5 = new JButton("bou");
btn5.setBounds(250,100,100,40);
frame.add(btn1);
frame.add(btn2);
frame.add(btn3);
frame.add(btn4);
frame.add(btn5);
frame.setSize(300,300);
frame.setLayout(null);
frame.setVisible(true);
}
}