Music Player using Java AJP 22517 SEM V
A
MICRO PROJECT REPORT ON
“MUSIC PLAYER USING JAVA”
Program & Program code : CO-5-I
Course : Advanced Java Programming
Course code : 22517
Submitted by
Name of students Enrollment No Program
1. Manoj Hanumant Waghmare 2214640040 CO -5-I
2. Sandhya Hanumant Waghmare 2214640050 CO -5-I
Under the Guidance of
Prof.
In partial fulfillment of requirement for the award of Diploma
in Computer Engineering
MSBTE, Mumbai.
Academic Year: 2024-25
DEPARTMENT OF COMPUTER ENGINEERING
S.S.M. ADSUL POLYTECHNIC COLLEGE, CHAS,
AHMEDNAGAR-414 005(M.S)
Downloaded by Manoj Waghmare (manojw407@[Link])
Music Player using Java AJP 22517 SEM V
DEPARTMENT OF COMPUTER ENGINEERING
S.S.M. ADSUL POLYTECHNIC COLLEGE,
CHAS, AHMEDNAGAR-414 005(M.S)
CERTIFICATE
This is to certify that the micro project report entitled
“MUSIC PLAYER USING JAVA”
Submitted by
Name of student Enrollment No program
1. Manoj Hanumant Waghmare 2214640040 CO-5-I
2. Sandhya Hanumant Waghmare 2214640050 CO-5-I
of semester V institute, Sau. Sundarabai Manik Adsul Polytechnic, Chas, Ahmednagar (code:
1464) has completed the micro project satisfactorily in course (22517) for the Academic year
2024-25as prescribed in the MSBTE curriculum.
Place: Ahmednagar Date:
/ /2024.
Prof. Prof. Hole P.P. Prof. Gadakh.R.S
(Micro Project guide) (Head of Dept.) (Principal)
Downloaded by Manoj Waghmare (manojw407@[Link])
Music Player using Java AJP 22517 SEM V
ACKNOWLEDGEMENT
I take this opportunity to acknowledge the constant encouragement and continuous help given to
me by my guide I convey my sincere thanks to his valuable timely suggestion. I would also like to
thanks principal Prof. Gadakh R.S. and Head of Computer Department Prof. Hole.P.P I would also
like to thank teaching staff of Computer Department for helping us to achieve this goal.
I am also thankful to those who directly or indirectly helped me for completing this micro project. I
would like to thank my parents without whose supports; the completion of the micro project would
not have been possible.
Downloaded by Manoj Waghmare (manojw407@[Link])
Music Player using Java AJP 22517 SEM V
INDEX
Sr. No. Name of the topic Page no.
PART –A PLAN
1 Brief Introduction 1
2 Aim of the Micro-Project 2
3 Resources Required 2
PART –B OUTCOME
1 Brief Description 3
2 Aim of Micro-Project 4
3 Course Outcomes Integrated 4
4 Actual Procedure Followed 5
5 Actual Resources Used 7
6 Outputs of the Micro-Projects 8
7 Skill Developed/ learning out of this Micro-Project
Downloaded by Manoj Waghmare (manojw407@[Link])
Music Player using Java AJP 22517 SEM V
PART-A PLAN
1.0 Brief Introduction
Java is a class-based, object-oriented programming language that is designed to have as
few implementation dependencies as possible. It is a general-purpose programming language
intended to let application developers write once, run anywhere (WORA), meaning
that compiled Java code can run on all platforms that support Java without the need for
recompilation. Java applications are typically compiled to bytecode that can run on any Java virtual
machine (JVM) regardless of the underlying computer architecture. The syntax of Java is similar
to C and C++, but has fewer low-level facilities than either of them. The Java runtime provides
dynamic capabilities (such as reflection and runtime code modification) that are typically not
available in traditional compiled languages.
Java was originally developed by James Gosling at Sun Microsystems (which has since
been acquired by Oracle) and released in 1995 as a core component of Sun Microsystems' Java
platform. The original and reference implementation Java compilers, virtual machines, and class
libraries were originally released by Sun under proprietary licenses. As of May 2007, in compliance
with the specifications of the Java Community Process, Sun had relicensed most of its Java
technologies under the GNU General Public License. Oracle offers its own HotSpot Java Virtual
Machine, however the official reference implementation is the OpenJDK JVM which is free open
source software and used by most developers and is the default JVM for almost all Linux
distributions.
Music Player lets you manage all your music files quickly and easily . This audio
player supports almost all types of mp3 , midi ,wav , flac raw aac files and other audio formats .
Easily browse and play music songs by genres , albums , artists , songs and folder.
Media is integral parts of our lives. We are creating media player using java to handle all the music
requirements of user.
James Gosling, Mike Sheridan, and Patrick Naughton initiated the Java language project in
June 1991. Java was originally designed for interactive television, but it was too advanced for the digital
cable television industry at the time. The language was initially called Oak after an oak tree that stood
outside Gosling's office. Later the project went by the name Green and was finally renamed Java,
from Java coffee, the coffee from Indonesia. Gosling designed Java with a C/C++-style syntax that
system and application programmers would find familiar.
Downloaded by Manoj Waghmare (manojw407@[Link])
Music Player using Java AJP 22517 SEM V
2.0 AIM of Micro-Project
To Design a java program play music stored on machine and control it using
various java components.
3.0 Resources Required
Sr. No Name of Resource Specification Qty Remarks
1 Computer 500GB HDD, 1
4 Gb RAM,
AMD
processor,
Windows 7 OS
Downloaded by Manoj Waghmare (manojw407@[Link])
Music Player using Java AJP 22517 SEM V
PART-B OUTCOME
1.0 Brief Description
Java is a class-based, object-oriented programming language that is designed to have as few
implementation dependencies as possible. It is a general-purpose programming language intended to
let application developers write once, run anywhere (WORA), meaning that compiled Java code can
run on all platforms that support Java without the need for recompilation. Java applications are
typically compiled to bytecode that can run on any Java virtual machine (JVM) regardless of the
underlying computer architecture. The syntax of Java is similar to C and C++, but has fewer low-
level facilities than either of them. The Java runtime provides dynamic capabilities (such as reflection
and runtime code modification) that are typically not available in traditional compiled languages.
Java was originally developed by James Gosling at Sun Microsystems (which has since
been acquired by Oracle) and released in 1995 as a core component of Sun Microsystems' Java
platform. The original and reference implementation Java compilers, virtual machines, and class
libraries were originally released by Sun under proprietary licenses. As of May 2007, in compliance
with the specifications of the Java Community Process, Sun had relicensed most of its Java
technologies under the GNU General Public License. Oracle offers its own HotSpot Java Virtual
Machine, however the official reference implementation is the OpenJDK JVM which is free open
source software and used by most developers and is the default JVM for almost all Linux
distributions.
Music Player lets you manage all your music files quickly and easily . This audio
player supports almost all types of mp3 , midi ,wav , flac raw aac files and other audio formats .
Easily browse and play music songs by genres , albums , artists , songs and folder.
Media is integral parts of our lives. We are creating media player using java to handle all the music
requirements of user.
James Gosling, Mike Sheridan, and Patrick Naughton initiated the Java language project in
June 1991. Java was originally designed for interactive television, but it was too advanced for the digital
cable television industry at the time. The language was initially called Oak after an oak tree that stood
outside Gosling's office. Later the project went by the name Green and was finally renamed Java,
from Java coffee, the coffee from Indonesia. Gosling designed Java with a C/C++-style syntax that
system and application programmers would find familiar.
Downloaded by Manoj Waghmare (manojw407@[Link])
Nuclear Energy EST 22447 SEM V
2.0 AIM of Micro-Project
To Design a java program play music stored on machine and control it using
various java components.
3.0 Course Outcomes (CO)
1. Develop programs to handle events in Java Programming.
2. Develop programs using GUI Framework (AWT and Swing).
Downloaded by Manoj Waghmare (manojw407@[Link])
Nuclear Energy EST 22447 SEM V
4.0 Actual Procedure Followed
Code:-
package jlay;
import [Link].*;
import [Link].*;
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
import [Link];
public class layer
{ Player ;
BufferedInputStream bis;
FileInputStream fis;
File file;
layer(){
JFrame main = new JFrame();
[Link](true);
[Link](400,440);
[Link](new FlowLayout());
[Link]([Link]);
JButton choose = new JButton("Choose Your Song");
[Link]
(
new ActionListener()
{
@Override
public void action Performed(ActionEvent actionEvent)
{
open_dialog();
}
}
);
Downloaded by Manoj Waghmare (manojw407@[Link])
Nuclear Energy EST 22447 SEM V
[Link](choose);
JButton play = new JButton("Play");
[Link](new ActionListener() {
@Override
public void actionPerformed(ActionEvent actionEvent) {
try
{
[Link](100);
}
catch (Exception x){}
}
});
[Link](play);
JButton pause = new JButton("Pause");
[Link](new ActionListener() {
@Override
public void actionPerformed(ActionEvent actionEvent) {
try
{
[Link]();
}
catch (Exception x){}
}
});
[Link](pause);
[Link](JFrame.EXIT_ON_CLOSE);
void open_dialog()
{
JFileChooser fc = new JFileChooser();
int result = [Link](null);
if (result == JFileChooser.APPROVE_OPTION)
{
try {
file = new File([Link]().getAbsolutePath());
Downloaded by Manoj Waghmare (manojw407@[Link])
Nuclear Energy EST 22447 SEM V
fis = new FileInputStream(file);
bis = new BufferedInputStream(fis);
try {
player = new [Link](bis)
}
catch (Exception ec){}
}
catch(IOException e)
{
[Link]();
}
}
}
public static void main(String[] args)
{
layer l = new layer();
}
}
5.0 Actual Resources Used
Sr. No Name of Resource Specification Qty Remarks
1 Computer 500GB HDD, 1
4 Gb RAM,
AMD processor,
Windows 7 OS
Downloaded by Manoj Waghmare (manojw407@[Link])
Nuclear Energy EST 22447 SEM V
6.0 Outputs of Micro-Projects
Output:
Downloaded by Manoj Waghmare (manojw407@[Link])
Nuclear Energy EST 22447 SEM V
7.0 Skill Developed
Thus we have build music player using Java and various GUI components
Downloaded by Manoj Waghmare (manojw407@[Link])
Nuclear EST 22447 SEM V
. Energy ANNEXURE II
Evolution Sheet for the Micro Project
Academic Year : 2024-25 Name of Faculty : Prof.
Course : AJP Course Code : 22517 Semester : 5th
Title of the Project : “MUSIC PLAYER USING JAVA”
(A) COs addressed by the Micro Project: A: CO1: CO1: Advanced Java Programming Skills
The project will help students apply advanced Java programming concepts, such as
object-oriented programming (OOP), exception handling, multi-threading, and GUI
development using Java Swing or JavaFX.
Major learning outcomes achieved by students by doing the Project: (a)Practical
outcomes: Proficiency in Advanced Java Techniques
Students will deepen their understanding of advanced Java features, such as
concurrency, file I/O, and event-driven programming.
(b) Unit outcomes in Cognitive domain:
Unit 1: Unit Outcomes in the Cognitive Domain
Students will be able to describe and apply advanced Java programming concepts and principles
in the context of their music player project.
(c)Outcomes in Affective Domain: Awareness: Increased Confidence in Programming Skills
By successfully completing the project, students will gain confidence in their
programming abilities and problem-solving skills.
Comments/Suggestion about team work/leadership/inter-personal communication
(if any)
Marks out of 4 for
Marks out of 6 for Total
Roll performance in oral/
Student Name performance(D5 out of
No. presentation (D5
Col. 8) 10
Col.9)
1 Manoj Hanumant Waghmare
2 Sandhya Hanumant Waghmare
(Name & Signature of Faculty)
Downloaded by Manoj Waghmare (manojw407@[Link])