update
This commit is contained in:
16
DEV.2.1/TP/TP8-Evenements/1.Fond/Fond.java
Normal file
16
DEV.2.1/TP/TP8-Evenements/1.Fond/Fond.java
Normal file
@@ -0,0 +1,16 @@
|
||||
import java.awt.*;
|
||||
import javax.swing.*;
|
||||
|
||||
public class Fond {
|
||||
private JButton Cyan, Magenta, Jaune;
|
||||
|
||||
public Fond() {
|
||||
this.Cyan = new JButton("Cyan");
|
||||
this.Magenta = new JButton("Magenta");
|
||||
this.Jaune = new JButton("Jaune");
|
||||
|
||||
this.Cyan.setBounds(100,50,100,20);
|
||||
this.Magenta.setBounds(220,50,100,20);
|
||||
this.Jaune.setBounds(320,50,100,20);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user