Java Applet: Basic Drum Set
I am trying to program an applet that has four buttons, all of which play a short audio file. The goal is to try and have the user successfully click the buttons any number of times, therefore creating a beat. Here is my attempt: import java.awt.*; import java.applet.*; import java.awt.event.*; import javax.swing.*; public class drumKit extends JApplet { private JButton snareButton; private JButton hiHatButton; private JButton bassButton; private JButton cymbalsButton; private AudioClip snare; private AudioClip hiHat; private AudioClip bass; private AudioClip cymbals; public void init() {