导入import java.awt.event.ActionListener;出现问题

在网上找了好久似乎都没有我的这个问题的解决办法,

我一导入import java.awt.event.ActionListener;就会出现红色下划线,提示The import java.awt.event.ActionListener cannot be resolved.

ActionListener cannot be resolved to a type

The type java.awt.event.ActionListener cannot be resolved. It is indirectly referenced from required .class files

代码如下:

package com.simplechat;

import java.awt.*;
import javax.swing.*;
import java.awt.event.*;

import javax.swing.JFrame;

public class ClientView extends JFrame implements ActionListener, KeyListener {

	@Override
	public void keyTyped(KeyEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void keyPressed(KeyEvent e) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void keyReleased(KeyEvent e) {
		// TODO Auto-generated method stub
		
	}

}

大佬看看我。。。

Java Standard Edition 环境是没有问题的,你不会是 Android 程序?如果不是的话,就是要检查下你的 JDK 配置路径是否有问题。