Acción en Boutton Haga clic en Java Swing

JButton b = new JButton("push me");
b.addActionListener(new ActionListener() {

    @Override
    public void actionPerformed(ActionEvent e) {
        //your actions
    }
});
Bewildered Batfish