Update DEV.2.1/TP/TP8-Evenements/1.Fond/Fond.java
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import java.awt.*;
|
||||
import java.awt.event.*;
|
||||
import javax.swing.*;
|
||||
|
||||
public class Fond extends JPanel implements ActionListener {
|
||||
@@ -11,9 +12,9 @@ public class Fond extends JPanel implements ActionListener {
|
||||
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);
|
||||
this.Cyan.setBounds(100, 50, 100, 30);
|
||||
this.Magenta.setBounds(220, 50, 100, 30);
|
||||
this.Jaune.setBounds(340, 50, 100, 30);
|
||||
|
||||
this.Cyan.addActionListener(this);
|
||||
this.Magenta.addActionListener(this);
|
||||
|
Reference in New Issue
Block a user