Search:

Type: Posts; User: ls7897

Search: Search took 0.42 seconds.

  1. Replies
    6
    Views
    596

    Re: Help with jButton

    class AddHandler implements ActionListener {
    public void actionPerformed(ActionEvent event) {
    AddTotal totals = new AddTotal();
    totals.add();
    }
    }


    class...
  2. Replies
    6
    Views
    596

    Re: Help with jButton

    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....
  3. Replies
    6
    Views
    596

    Help with 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.*;...
Results 1 to 3 of 3