From b85e8746066698787bd87f26074a9ef9b01c482a Mon Sep 17 00:00:00 2001 From: Emmanuel SRIVASTAVA TIAMZON Date: Wed, 5 Mar 2025 20:46:55 +0100 Subject: [PATCH] Update DEV.2.1/TP/TP8-Evenements/1.Fond/MainFond.java --- .../TP/TP8-Evenements/1.Fond/MainFond.java | 55 ------------------- 1 file changed, 55 deletions(-) diff --git a/DEV.2.1/TP/TP8-Evenements/1.Fond/MainFond.java b/DEV.2.1/TP/TP8-Evenements/1.Fond/MainFond.java index 29a9a37..4b91f83 100644 --- a/DEV.2.1/TP/TP8-Evenements/1.Fond/MainFond.java +++ b/DEV.2.1/TP/TP8-Evenements/1.Fond/MainFond.java @@ -15,58 +15,3 @@ public class MainFond { frame.setVisible(true); } } - - -./Fond.java:4: error: cannot find symbol -public class Fond extends JPanel implements ActionListener { - ^ - symbol: class ActionListener -./Fond.java:27: error: cannot find symbol - public void actionPerformed(ActionEvent evenement) { - ^ - symbol: class ActionEvent - location: class Fond -./Fond.java:17: error: incompatible types: Fond cannot be converted to ActionListener - this.Cyan.addActionListener(this); - ^ -./Fond.java:18: error: incompatible types: Fond cannot be converted to ActionListener - this.Magenta.addActionListener(this); - ^ -./Fond.java:19: error: incompatible types: Fond cannot be converted to ActionListener - this.Jaune.addActionListener(this); - ^ -./Fond.java:26: error: method does not override or implement a method from a supertype - @Override - ^ -./Fond.java:33: error: cannot find symbol - setBackground(Color.JAUNE); - ^ - symbol: variable JAUNE - location: class Color -Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output -7 errors -[srivasta@vm-srivasta 1.Fond]$ q -[srivasta@vm-srivasta 1.Fond]$ javac MainFond.java -./Fond.java:4: error: cannot find symbol -public class Fond extends JPanel implements ActionListener { - ^ - symbol: class ActionListener -./Fond.java:28: error: cannot find symbol - public void actionPerformed(ActionEvent evenement) { - ^ - symbol: class ActionEvent - location: class Fond -./Fond.java:18: error: incompatible types: Fond cannot be converted to ActionListener - this.Cyan.addActionListener(this); - ^ -./Fond.java:19: error: incompatible types: Fond cannot be converted to ActionListener - this.Magenta.addActionListener(this); - ^ -./Fond.java:20: error: incompatible types: Fond cannot be converted to ActionListener - this.Jaune.addActionListener(this); - ^ -./Fond.java:27: error: method does not override or implement a method from a supertype - @Override - ^ -Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output -6 errors