I implemented ActionListener in my java class, but when I tried to auto-import (Shift+Alt+O), it gave this error:
Running the contributed command: '_vscode_delegate_cmd_ksicrwzq' failed.
The whole code is here:
import javax.swing.JFrame;
import javax.swing.JTextField;
public class myframe extends JFrame implements ActionListener{
myframe(){
this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
this.setLayout(new FlowLayout());
this.pack();
this.setVisible(true);
JTextField text = new JTextField();
text.setPreferredSize(new Dimension(250,40));
}


