This tutorial presents a sample Sound Recorder program written in Java Swing and provides step-by-step guide on how to develop such one. The program looks like this:

 Swing Sound Recorder program

The program is working as follows:

Swing Sound Recorder - stop playing back

Now you can repeat the same steps to record another one, cool right? Let’s see how to build this nice program in Java.



For technical details, refer to the following tutorials:

The following class diagram explains how the program is designed:

 Swing Sound Recorder class diagram

As we can see, the program consists of four main classes:

To explore details of each class, download Eclipse-based project the program (zip archive) and look at the src directory. You can also try to run the program by downloading and executing the program’s jar file in the attachments section (require Java 7 or later).

 

Related Java Sound Tutorials:

 

Other Java Tutorials:


About the Author:

is certified Java programmer (SCJP and SCWCD). He started programming with Java in the time of Java 1.4 and has been falling in love with Java since then. Make friend with him on Facebook and watch his Java videos you YouTube.



Attachments:
Download this file (SwingSoundRecorder.jar)SwingSoundRecorder.jar[Executable JAR file]12 kB
Download this file (SwingSoundRecorder.zip)SwingSoundRecorder.zip[Eclipse project]21 kB