I'm adding KeyListener and ActionListener to a JTextField class. Can i add KeyListener and ActionListener together.. And i got this error :
C:\Users\ERIE\Desktop\CROSSJAVA\Lat1.java:5: Lat1 is not abstract and does not override abstract method keyTyped(java.awt.event.KeyEvent) in java.awt.event.KeyListener
public class Lat1 extends JFrame implements KeyListener, ActionListener {
I wonder why this happen? Can someone help me pointed out, what did i do wrong?Thank's..