Professional Documents
Culture Documents
Music Player System: Government Polytechnic, Nandurbar
Music Player System: Government Polytechnic, Nandurbar
Semester :5th
Seal of
Institution
MAHARASHTRA STATE BOARD OF TECHNICAL
EDUCATION,MUMBAI
Evaluation sheet for the Micro project
SR NO CONTENT PAGE NO
01 Introduction 05
02 What is a renewable energy source? 06
03 Solar energy 07
04 Wind energy 09
05 Hydro energy 10
06 Geothermal energy 18
07 Biomass energy 21
08 Tidal energy
09 Conclusion , References
07 Weekly work/Progress Report 22
07 Nanexure-II 23
08 COs address by the Microproject 24
Introduction
Java is a class-based, object-oriented programming language that is created to have as little execution
reliance as possible. It is a general-purpose programming language planned to let application
developers write once, and run anywhere (WORA), meaning that compiled Java code can run on all
platforms that support Java without the requirement for recompilation. Java applications are generally
compiled to bytecode that can run on any Java virtual machine (JVM) regardless of the underlying
computer architecture. The syntax of Java is identical to C and C++ but has fewer low-level facilities
than either of them. The Java runtime delivers dynamic abilities (such as reflection and runtime code
modification) that are generally not available in traditional compiled languages.
Java was initially developed by James Gosling at Sun Microsystems (which has since
been accepted by Oracle) and released in 1995 as a core component of Sun Microsystems'
Java platform. The actual and reference implementation of Java compilers, virtual machines, and
class libraries were initially 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 utilized by most developers and is the default JVM for almost all
Linux distributions.
Music Player lets you control all your music files fast and easily. This audio player supports nearly all
kinds of mp3, midi,wav, FLAC raw aac files, and additional audio formats . Easily browse and play
music songs by genres, albums, artists, songs, and folders. Media is a crucial factor in our lives. We
are making a media player using java to handle all the music requirements of the user.
James Gosling, Mike Sheridan, and Patrick Naughton initiated the Java language project in
June 1991. Java was initially developed for interactive television, but it was too advanced for the
digital cable television industry at the time. The language was originally called Oak after an oak tree
that stood outside Gosling's office. Later the project went by the name Green and was eventually
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.
Aims/Benefits of the micro project
Java technology is widely used for web application development. Based on the object-oriented
concepts and core Java concepts, this course will equip the students with the required knowledge and
skill of object-oriented programming approach needed for the development of robust, powerful web
applications. Through this course, students will get hands-on experience on GUI Technologies viz.
AWT and Swings, event handling mechanisms and network programming. The course also gives
coverage to various web application aspects like Database Interaction, server-side components, and
servlets.
Proposed methodology
Create a music player using a java programming language that helps to play music.
Hardware Requirements
System : Ryzen
Frequency : 3.0 GHz
RAM : 8 GB
ClockLayoutDis
k Capacity : 500 GB
Software Requirements
START
SELECT FILE
AUDIO PLAYER
PLAY
PAUSE
Rewind
Fast Forward
END
SYSTEM PROCESS / DESIGN OF MUSIC PLAYER
Code
/*
*/
package com.dataflair.mp3.dataflair.mp3musicplayer;
/**
*/
import javazoom.jl.player.Player;
import javax.swing.*;
import javax.swing.filechooser.FileNameExtensionFilter;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.*;
JFrame frame;
JLabel songName;
JButton select;
//Creating Panels
//Creating buttons
JFileChooser fileChooser;
FileInputStream fileInputStream;
BufferedInputStream bufferedInputStream;
Player player;
public MusicPlayer() {
initUI();
addActionEvents();
//Calling Threads
playerPanel.add(select);
playerPanel.add(songName);
//Setting Layout of ControlPanel
controlPanel.add(play);
controlPanel.add(pause);
controlPanel.add(resume);
controlPanel.add(stop);
play.setBackground(Color.WHITE);
pause.setBackground(Color.WHITE);
resume.setBackground(Color.WHITE);
stop.setBackground(Color.WHITE);
frame.add(playerPanel, BorderLayout.NORTH);
frame.add(controlPanel, BorderLayout.SOUTH);
//Setting Frame background color
frame.setBackground(Color.white);
frame.setSize(400, 200);
frame.setVisible(true);
frame.setResizable(false);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
select.addActionListener(this);
play.addActionListener(this);
pause.addActionListener(this);
resume.addActionListener(this);
stop.addActionListener(this);
@Override
if (e.getSource().equals(select)) {
fileChooser.setCurrentDirectory(new File("C:\\Users"));
fileChooser.setDialogTitle("Select Mp3");
fileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);
if (fileChooser.showOpenDialog(select) == JFileChooser.APPROVE_OPTION) {
myFile = fileChooser.getSelectedFile();
filename = fileChooser.getSelectedFile().getName();
filePath = fileChooser.getSelectedFile().getPath();
if (e.getSource().equals(play)) {
if (filename != null) {
playThread.start();
} else {
if (e.getSource().equals(pause)) {
try {
pauseLength = fileInputStream.available();
player.close();
e1.printStackTrace();
if (e.getSource().equals(resume)) {
if (filename != null) {
resumeThread.start();
} else {
if (e.getSource().equals(stop)) {
if (player != null) {
player.close();
songName.setText("");
}
}
@Override
try {
totalLength = fileInputStream.available();
player.play();//starting music
} catch (Exception e) {
e.printStackTrace();
};
@Override
try {
fileInputStream.skip(totalLength - pauseLength);
player.play();
} catch (Exception e) {
e.printStackTrace();
};
}
Output
BIBILIOGRAPHY
REFERENCE BOOKS:
[2] F.S. Hill, Jr.: computer graphics using OpenGL, 2nd edition, Pearson education,
2001.
WEB URL’S:
Http://msdn.microsoft.com http://codeproject.com
http://stackoverflow.com
Weekly Work / Progress Report –
Academic
Name of Guider: Mr. M. P. Vasave
Year:-2022-2023
Sem :- Fifth Program Name : Advance Java
Course Name: : Course Code: 22517
Environmental Studies
(A)
MajorLearningOutcomesachievedbystudentsbydoingtheProject:
(B) (a) PracticalOutcomes:
(b) Using
(c) Outcomes (in Cognitive domain)
(d) Outcomes in AffectiveDom
(e) Comment/Suggestions about teamwork/leadership/interpersonal
Communication
(f)
+ All the team members were co-operative and helped each other. The team members
gave full support. Rather, there was no mis-understanding among any of any of the team
members.
Sanika Deore
Unnati Surywanshi
Tejaskumar Girnar
Devam Shroff