hi guys, i need to write a program about slide show in java, please help me with these wrong code :
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
class myframe extends JWindow
{
myframe()
{
setLocation(200,200);
setSize(250,150);
addKeyListener(new Listen());
show();
}
class Listen extends KeyAdapter
{
public void keyPressed(KeyEvent e){
if (e.getKeyCode() == e.VK_ENTER)
{
System.exit(0);}
}
}
}
public class key_listener
{
public static void main(String[] args )
{
new myframe();
}
}
thanks in advance