Olá pessoal, tudo blz??
O seguinte erro:
Exception in thread “AWT-EventQueue-0” java.lang.NullPointerException
at cap12.SimpleGui1.actionPerformed(SimpleGui1.java:25)
aparece porque executo o código baixo…ele é muuuito simples, só muda o texto do botao quando o mesmo é apertado. Diz que não tem nenhum erro de sintaxe…apenas quando eu clico no botão é que aparece o erro acima…alguém suspeita de algo???
muito obrigado!!! 
import javax.swing.*;
import java.awt.event.*;
public class SimpleGui1 implements ActionListener{
JButton button;
public static void main(String[] args){
SimpleGui1 gui = new SimpleGui1();
gui.go();
}
public void go(){
JFrame frame = new JFrame();
JButton button = new JButton("click me");
button.addActionListener(this);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.getContentPane().add(button); //adiciona o botao ao content pane do JFrame
frame.setSize(100,100);
frame.setVisible(true);
}
public void actionPerformed(ActionEvent event){
button.setText("I've been clicked!!");
}
}