We can use inner classes for event handling. Here is this program we use Swing components for the GUI (Graphical User Interface) of the program and we use inner classes for event handling when the user clicks at the buttons given. We also use JLabel, Label and MIDI class along with a few others to make a music beat box. Using the buttons the user can increase or decrease the tempo. Using the checkboxes (JCheckBox) the user can select beats and instruments.
To see the code please click
No comments:
Post a Comment