Hello All
I did a simple GUI application in JAVA and it works fine, But when i tried to add Event Handling in it using an inner class
it gives me following error
"buttonHandler is not abstract and doesnt override abstract methods myButtonHandler(java.awt.event.ActionEvent) in java.awt.event.ActionListner
overall code is
Code:import java.awt.*; import java.awt.event.*; import javax.swing.*; public class testGUI{ //Inner Class public class buttonHandler implements ActionListner{ public void myButtonHandler(ActionEvent event){ JOptionPane.showMessageDialog(null, "Message Updated"); } }
Please Help


Reply With Quote



Bookmarks