ciao raga...
in questo codice devo attivare l'evento click al bottone, ma mi da un errore che nn riesco a capire.

Mi potete aiutare? grazie

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JButton;
import javax.swing.JTextField;
import javax.swing.JFileChooser;
import java.awt.Dimension;
import java.awt.*;


class SimpleFrame extends JFrame {
SimpleFrame () {
super();
setTitle ("ScriptManager");
setDefaultCloseOperation (JFrame.EXIT_ON_CLOSE);
getContentPane().add( new JLabel("ciao", JLabel.CENTER));
JButton b = new JButton("Apri");
getContentPane().add(b, BorderLayout.PAGE_START);
b.addActionListener(this);
pack();
setVisible(true);


}

public static void main(String[] args) {
SimpleFrame sf = new SimpleFrame();

}





}