Ilovepdf Merged
Ilovepdf Merged
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.
1. Java Sound API: Tools for audio playback and manipulation (Oracle).
2. JavaFX and Swing: Frameworks for creating user interfaces (J.F. DiMarzio).
3. Audio File Formats: Understanding MP3, WAV encoding/decoding (Bruce B.
R. B.).
4. Event-Driven Programming: Essential for user interaction in GUIs (Cay S.
Horstmann).
5. Multimedia Frameworks: Libraries like JLayer and JavaFX Media for audio
support (John F. Meyer).
6. User Experience Design: Focus on intuitive interfaces and user-centered
design (Steve Krug).
5.0 Resources Required (major resources like raw material, tools, software etc.)
S. No. Name of Specifications Qty Remarks
Resource/material
1 PC Core i3, RAM 4GB 1
2 Operating System Windows 10/11 1
3 Software JDK 20, VS Code/Eclipse 1
6.0 Action Plan (Sequence and time required for major activities for 8-10 Weeks)
Acknowledgement
It is not until you undertake the project like this one that you realize how massive the effort it really
is, or how much you must rely upon the Selfless efforts and goodwill of others. There are many who
helped us with this project, and we want to thank them all from the core of our Hearts.
We owe special words of thanks to our Teacher Afzal Ahmad Sir for their vision, thoughtful counseling
and encouragement at every step of the project. We are also thankful to the teachers of the Department
for giving us the best of knowledge and guidance throughout the project.
And last but not the least, we find no words to acknowledge the financial assistance & moral support
rendered by our parents in making the effort a success. All this has become reality because of their
blessings and above all by the grace of God.
1|Page
A Micro-project Report on “Calculator using Swing”
CONTENTS
1 Rationale ……………….…………………………………………………..…….. 3
2|Page
A Micro-project Report on “Calculator using Swing”
1.0 Rationale
Project work is the activity that is intended to integrate all the domains of learning i.e. cognitive,
psychomotor and affective domains wherever applicable, the hence it is very important from the
teacher and student point of view. Any project work is not research, but an experience of doing some
complex work by students on their own, or ‘work-based learning’. Project can be of micro, mini, minor
and major levels depending on at what stage of learning (from first semester to the last semester) it is
incorporated; but all these categories will have the same characteristics. Only the amount of effort put
in and time required will be changing. Therefore, the project work is defined as ‘A purposeful student
activity planned, designed and performed by a student or group of students to solve the identified
problems (or complete a relatively complex task) which requires them to integrate the various
types of skills acquired over a period to help them to accomplish higher level of cognitive and
affective domain outcomes and sometimes the psychomotor domain outcomes as well'. (Earnest,
Joshua and S. K. Gupta). This definition means that the project work leads to the integration of
knowledge, skills and attitudes of the three domains of learning acquired over a period of time.
1. Java Sound API: Tools for audio playback and manipulation (Oracle).
2. JavaFX and Swing: Frameworks for creating user interfaces (J.F. DiMarzio).
3. Audio File Formats: Understanding MP3, WAV encoding/decoding (Bruce B. R.
B.).
4. Event-Driven Programming: Essential for user interaction in GUIs (Cay S.
Horstmann).
5. Multimedia Frameworks: Libraries like JLayer and JavaFX Media for audio
support (John F. Meyer).
6. User Experience Design: Focus on intuitive interfaces and user-centered design
(Steve Krug).
3|Page
A Micro-project Report on “Calculator using Swing”
Websites:
https://www.tutorialspoint.com/java/
http://nptel.ac.in/courses/106105084/30
https://www.javatpoint.com/java-tutorial
https://docs.oracle.com/
Algorithm:
Class Declaration:
Initialize Variables:
Constructor (layer):
4|Page
A Micro-project Report on “Calculator using Swing”
JFrame create karein aur iski properties set karein (size, layout, background color).
Choose Your Song button create karein:
o ActionListener add karein jo open_dialog() method call kare.
Play button create karein:
o ActionListener add karein jo audio file ko play kare.
Pause button create karein:
o ActionListener add karein jo audio ko pause kare.
Main Method:
import java.io.File;
5|Page
A Micro-project Report on “Calculator using Swing”
import javazoom.jl.decoder.JavaLayerException;
import javazoom.jl.player.Player; import
java.io.FileInputStream; import java.io.IOException;
import java.util.function.Function;
Player ;
BufferedInputStream bis;
FileInputStream fis;
File file;
layer(){
main.setBackground(Color.MAGENTA);
choose.addActionListener
new ActionListener()
@Override
open_dialog();
);
main.add(choose);
6|Page
A Micro-project Report on “Calculator using Swing”
JButton play = new JButton("Play"); play.addActionListener(new
ActionListener() {
@Override
player.play(100);
});
main.add(play);
@Override
player.wait();
});
main.add(pause);
main.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
void open_dialog()
7|Page
A Micro-project Report on “Calculator using Swing”
int result = fc.showOpenDialog(null);
if (result == JFileChooser.APPROVE_OPTION)
{ try
{
try {
catch(IOException e)
e.printStackTrace();
8|Page
A Micro-project Report on “Calculator using Swing”
9|Page
A Micro-project Report on “Calculator using Swing”
**************
10 | P a g e
A Micro-project Report on “Calculator using Swing”
Total
Process Assessment Product Assessment
Marks
Project
Roll
Name Project Project Report/ Individual
No.
Proposal (2 Methodology Working Presentation 10
marks) (2 marks) model (2 (4 Marks)
marks)
11 | P a g e