NullPointerException Java help
- by KP65
Hello guys. I've been tearing my hair out the past few hours trying to solve this problem. Every time I click on a JButton which should open a JFrame(And it does), i get a stacktrace saying I have a null point exception at these bits of code:
In class A i have:
aButton.addActionListener(new ActionListener() {
public void…