addActionListener disables communication
......
incarca.inc.addActionListener(this);
pack();
setLocationRelativeTo(frame);
setVisible(true);
}
publicvoid actionPerformed(ActionEvent e){
if("Incarca" == e.getActionCommand()){
System.err.println("Button Pressed");
incarca.getNumbers();
}
incarca is a JFrame and inc is a button on that Frame. an instance of incarca is previously loaded in this applet. When I press the button the function actionPerformed records it put when the compiler reaches incarca.getNumbers() it throes the following errors "java.lang.NullPointerException" and "java.security.AccessController.doPrivileged(Native Method)". After the button is pressed i can't acces anything inside incarca class. Is there something that can be done?

