Main.java:24: error: non-static variable this cannot be referenced from a static context
b1.addActionListener(this);
^
Main.java:24: error: method addActionListener in class Button cannot be applied to given types;
b1.addActionListener(this);
^
required: ActionListener
found: abc
reason: actual argument abc cannot be converted to ActionListener by method invocation conversion
Main.java:28: error: non-static variable this cannot be referenced from a static context
b2.addActionListener(this);
^
Main.java:28: error: method addActionListener in class Button cannot be applied to given types;
b2.addActionListener(this);
^
required: ActionListener
found: abc
reason: actual argument abc cannot be converted to ActionListener by method invocation conversion
Main.java:32: error: non-static variable this cannot be referenced from a static context
b3.addActionListener(this);
^
Main.java:32: error: method addActionListener in class Button cannot be applied to given types;
b3.addActionListener(this);
^
required: ActionListener
found: abc
reason: actual argument abc cannot be converted to ActionListener by method invocation conversion
Main.java:36: error: non-static variable this cannot be referenced from a static context
b4.addActionListener(this);
^
Main.java:36: error: method addActionListener in class Button cannot be applied to given types;
b4.addActionListener(this);
^
required: ActionListener
found: abc
reason: actual argument abc cannot be converted to ActionListener by method invocation conversion
Main.java:40: error: non-static variable this cannot be referenced from a static context
b5.addActionListener(this);
^
Main.java:40: error: method addActionListener in class Button cannot be applied to given types;
b5.addActionListener(this);
^
required: ActionListener
found: abc
reason: actual argument abc cannot be converted to ActionListener by method invocation conversion
Main.java:44: error: non-static variable this cannot be referenced from a static context
b6.addActionListener(this);
^
Main.java:44: error: method addActionListener in class Button cannot be applied to given types;
b6.addActionListener(this);
^
required: ActionListener
found: abc
reason: actual argument abc cannot be converted to ActionListener by method invocation conversion
12 errors