How to set Action Listener to 3 buttons
问题 I'm trying to make a stopwatch with three buttons, "Start", "Pause", and "Stop". My instructor only taught us how to set Action Listeners to two buttons. How do I set up Action Listeners to three buttons? Here is my coding so far JButton startButton = new JButton("Start"); JButton stopButton = new JButton("Stop"); JButton pauseButton = new JButton("Pause"); startButton.addActionListener(this); stopButton.addActionListener(this); public void actionPerformed(ActionEvent actionEvent) { Calendar