aboutsummaryrefslogtreecommitdiff
path: root/PunchingBag/src/PunchingBag.java
diff options
context:
space:
mode:
Diffstat (limited to 'PunchingBag/src/PunchingBag.java')
-rw-r--r--PunchingBag/src/PunchingBag.java24
1 files changed, 24 insertions, 0 deletions
diff --git a/PunchingBag/src/PunchingBag.java b/PunchingBag/src/PunchingBag.java
new file mode 100644
index 0000000..278a8fc
--- /dev/null
+++ b/PunchingBag/src/PunchingBag.java
@@ -0,0 +1,24 @@
+import java.awt.event.ActionEvent;
+import java.awt.event.ActionListener;
+
+import javax.swing.JButton;
+import javax.swing.event.EventListenerList;
+
+
+public class PunchingBag {
+ protected EventListenerList listenerList = new EventListenerList();
+
+ /**
+ * Adds an <code>ActionListener</code> to the button.
+ * @param l the <code>ActionListener</code> to be added
+ */
+ public void addButtonListener(ButtonListener l) {
+ listenerList.add(ButtonListener.class, l);
+ }
+
+ public void setLED(byte x, byte y, byte intensity) {
+
+
+ }
+
+}