To break the problem down, the following code demonstates (at least hopefully)
import java.awt.event.*;
import javax.swing.*;
public class Test extends JFrame implements ActionListener{
...
Type: Posts; User: copeg
To break the problem down, the following code demonstates (at least hopefully)
import java.awt.event.*;
import javax.swing.*;
public class Test extends JFrame implements ActionListener{
...
The following lines...
JLabel totalLabel = new JLabel ();
Total.add (totalLabel);
...create a local JLabel named totalLabel and does not use your static variable, so every time you try to...