public class Clacker implements ActionListener {
JLabel a;
JLabel b;
int r1=0;
int r2=0;
public Clacker(){
JLabel a=new JLabel("Dice Rolls: "+r1);
JLabel b=new JLabel("Dice Rolls: "+r2);
}
...
}
In your constructor, you are creating 2 new label variables, and you are initializing those variables instead of your field variables.
public Clacker(){
a=new JLabel("Dice Rolls: "+r1);
b=new JLabel("Dice Rolls: "+r2);
}
This will fix your problem. Remove the declarations in your constructor, and initialize the field labels.