0% found this document useful (0 votes)
21 views14 pages

AJPrushi 202

The document describes a Java music player project. It includes an introduction to Java, the technologies and tools used including Eclipse and Notepad++, the program code to play music files, and outputs of the music player. It also includes sections on the conclusion and references.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views14 pages

AJPrushi 202

The document describes a Java music player project. It includes an introduction to Java, the technologies and tools used including Eclipse and Notepad++, the program code to play music files, and outputs of the music player. It also includes sections on the conclusion and references.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

A

PROJECT REPORT ON

“Music Player Using Java”

SUBMITTED BY
Mr. SONAWANE RUSHIKESH DEEPAK (2100340273)

Under the guidance of


Mr. S. B. JADHAV

DEPARTMENT OF COMPUTER TECHNOLOGY


Sanjivani Rural Education Society’s

SANJIVANI K.B.P POLYTECHNIC

KOPARGAON: 423603, DIST: AHMEDNAGAR

2023-2024

Page 1
CERTIFICATE
This is certify that the project report entitied
“Music Player Using Java”
SUBMITTED BY

Mr. SONAWANE RUSHIKESH DEEPAK (2100340273)

Of fifth semester of Diploma in ‘Computer Technology’ institute of Sanjivani K.B.P


Polytechnic Kopargaon has submitted the Micro-project satisfactorily in subject
“ADVANCE JAVA PROGRAMMING” for academic year 2023 to 2024 as
prescribed in the curriculum.

Place: - Kopargaon

Date: ----------------

Subject Teacher HOD Principal

Page 2
ACKNOWLEDGMENT

We would take this opportunity to express our sincere thanks and gratitude to our Project
Guide Mrs. S. B. Jadhav, Department of Computer Technology, Sanjivani K.B.P. Polytechnic,
Kopargaon. For her vital guidance and support in completing this project. Lots of thanks to
Head of Computer technology Department Prof. G.N. Jorvekar for providing us the best support
we ever had. We like to express our sincere gratitude to Mr. A. R. Mirikar, Principal, of Sanjivani
K.B.P. Polytechnic, Kopargaon for providing a great platform to complete the project within
the scheduled time. Last but not the least; we would like to say thanks to our family and friends
for their never ending love, help, and support in so many ways through all this time.
A big thanks to all who have willingly helped us out with their ability.

Mr. SONAWANE RUSHIKESH DEEPAK (2100340273)

Page 3
INDEX

SR.NO. TITLE

PAGE NO.
1. INTRODUCTION 6

2. TECHNOLOGIES & TOOLS 7

3. PROGRAM 8

4. OUTPUT 11

5. CONCLUSION 13

6. REFERENCE 14

Page 4
Micro-Project Proposal
Title: MUSIC PLAYER

1.0 Aim/Benefits of the Micro-Project: To Design a java program play music stored on
machine and control it using various java components.

Components,Swing and Events for and Word Counter

2.0 Course Outcomes Addressed:


CO1:Develop Programs Using GUI Framework (AWT And Swing).
CO2:Handle Events Of AWT And Swings Components.

CO3:Develop Programs To Handle Events In Java Programming..

3.0 Proposed Methodology:

• Discussion about the topic guide and among the group members.
• Literature survey.
• Submission of project proposal
• Information collection.
• Analysis of data.
• Compilation of content.
• Representation.
• Editing and revising the content.
• Report preparation.

4.0.Abstract

This Java application is best suited for counting words. Remember, our childhood days when we were
asked to write an essay on a given topic where the word length should be 500 or 1000. This application
comes with a feature that could help you. Along with word count, it also tells you the number of
characters, words, and paragraphs it has. Also, it is completely free to use and there’s no word count
limit.

Page 5
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.

Page 6
2. TECHNOLOGIES & TOOLS

Software Used:
1. Command propmt
2.Languages Used: JAVA
3.Eclipse and Notepad++ (for compiling and executing the programs)

Hardware Used:
CPU configuration
-Intel
- RAM 8 GB DDR2

Operating System:
- Windows 10

Future Scope
1. This project will help the store keeper in fast billing.
2. This project enable store keeper to maintain a great database of all Customers visited and purchase
product from store.
3. Project will enable to see report regarding product and category.
4. It is easy to maintain in future prospect.

Characterstic Of The Proposed


System:

1. Easiness in modification of data.


2. User friendly: The proposed system is user friendly.
3. Reports are easily generated: Reports can be easily generated in a proposed system. So any type of
reports can be generated in a proposed system, which helps the managers in a decisionsmaking activity.

Page 7
Code :-

package jlay;

import javax.swing.*; import java.awt.*;


import java.awt.event.ActionEvent; import
java.awt.event.ActionListener; import
java.io.BufferedInputStream;

import java.io.File;

import javazoom.jl.decoder.JavaLayerException;
import javazoom.jl.player.Player;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.function.Function;

public class layer {

Player ;
BufferedInputStream bis;

FileInputStream fis;

File file;

layer(){

JFrame main = new JFrame();


main.setVisible(true); main.setVisible(400,440);
main.setLayout(new FlowLayout());

main.setBackground(Color.MAGENTA);

JButton choose = new JButton("Choose Your Song");

choose.addActionListener

new ActionListener()

public void action Performed(ActionEvent actionEvent)

open_dialog();

Page 8
}

);

main.add(choose);

JButton play = new JButton("Play"); play.addActionListener(new


ActionListener() {

@Override

public void actionPerformed(ActionEvent actionEvent) {


try {

player.play(100);

catch (Exception x){}

});

main.add(play);

JButton pause = new JButton("Pause");

pause.addActionListener(new ActionListener() {

public void actionPerformed(ActionEvent actionEvent) {

main.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

try

player.wait();

catch (Exception x){}

});

main.add(pause); }

void open_dialog()

Page 9
JFileChooser fc = new JFileChooser();

int result = fc.showOpenDialog(null);

if (result == JFileChooser.APPROVE_OPTION)

{ try
{

file = new File(fc.getSelectedFile().getAbsolutePath());

fis = new FileInputStream(file);

bis = new BufferedInputStream(fis);

try {

player = new javazoom.jl.player.Player(bis);

catch (Exception ec){}

catch(IOException e)

e.printStackTrace();

public static void main(String[] args)

layer l = new layer();

Page 10
OUTPUT :-

Page 11
Page 12
CONCLUSION

Here I have come to end of the project the topic is MUSIC PLAYERS
I would like to share my experience while doing this project I have learn many things.
It was a wonderful learning experience for me while working on the project. A very special thanks
to Mr. S.B.Jadhav who gave a very wonderful project I hope my project will be interesting and
knowledgeable.

Page 13
REFERENCE

• GeeksforGeeks. (n.d.). Java Exception Handling.


https://www.geeksforgeeks.org/exceptionhandling-in-java/
• https://www.javatpoint.com/
• Various open source materials from Internet.
• Training notes.
• Discussion among the group and with guide.
• Some requirements are gathered through various books from library

Page 14

You might also like