Using an ActionEvent
Posted on 2005-04-22
I've created a button to perform user actions on clips being played.
Button button = new Button("ClickMe");
button.setPreferredSize(new Dimension(200, 80));
public void actionPerformed(ActionEvent e)
// logic to handle the button click event
I'm playing the clips like this
// probably you want this
When a user presses the button when a tone is being played I want to register this and take the user to say clip 5 from clip 2.
Could someone show me a tutorial on this or give me any tips on doing this?