I'm making a pong game in java and can't figure out how to pause and have a watch watching if you click the pause button:
fileItem5.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {
psd = true;
but I can't access it from my other classes. I declared it as
public boolean psd;
but when I enter it on my second class it gives me a "variable needs to be static error".