class AddHandler implements ActionListener {
public void actionPerformed(ActionEvent event) {
AddTotal totals = new AddTotal();
totals.add();
}
}
class...
Type: Posts; User: ls7897
class AddHandler implements ActionListener {
public void actionPerformed(ActionEvent event) {
AddTotal totals = new AddTotal();
totals.add();
}
}
class...
This is exactly what I mean, but I just can't work out how to do it correctly. I'm getting errors everytime including 'cannot put add(Double) into jButton....
I've created a calculator. Two .java files, one the calculator, one the GUI.
I'm stuck on how to link up the jButton ActionListeners.... wondering if anyone can help...
import javax.swing.*;...