Micoproject
Micoproject
MICROPROJECT
Academic year:2024-25
Principal
Seal of
Institution
3
INDEX
1 Acknowledgement 4
2 Annexure I 5-6
3 Annexure II 7
5 Output 13-14
6 Conclusion 15
7 Reference 16
4
ACKNOWLEDGEMENT
We express our sincere Thanks to our guide PROF.Kale Sir. Head Of The
COMPUTER Department. Who has given us valuable suggestion excellent
guidance, continues encouragement and taken keen interest in the completion of
this work. Her kind assistance and constant inspiration will always help us in our
future also.
Annexure I
Micro-Project Proposal
Aims/Benefits of the Micro-Project : Build a Program For Music Player Using Java.
Course Outcomes Addressed:
1. Develop a program using GUI framework (AWT and SWING)
2. Develop programs to handle events in Java programming
Proposed Methodology :
1.Firstly we will select the microproject topic.
2.After selecting microproject topic we will gather the information about it from everywhere
such as online sites.
3.After gathering information we will start to write program for it.And by accomplishing this
methodology we will finish the microproject in easy way.
Literature Review: The development of a music player in Java is grounded in various well-
established technologies, ranging from multimedia libraries to GUI frameworks and file handling
mechanisms. Java’s versatility, combined with libraries like JavaFX, JLayer, and BasicPlayer,
provides a rich environment for creating music player applications. Literature in the field consistently
highlights the benefits of Java’s object-oriented nature, event-driven programming model, and cross-
platform capabilities, making it an ideal language for developing a portable, functional music player.
Action Plan :
2 Computer/desktop/laptop Windows10pro,22H2 4
@3.20 @3.19GHz CPU
6
Annexure II
Micro-Project Report
Rationale :
A Java-based music player typically involves using multimedia libraries like JavaFX or third-
party APIs like JLayer, JavaZoom, or BasicPlayer to handle audio playback. By working with these
libraries, developers can deepen their understanding of how Java interacts with media formats and how
to manipulate files programmatically.
Aims/Benefits of the Micro-Project : Aim of this microproject is to Build a Program For
Music Player Using Java.
Course Outcomes Addressed:
1. Develop a program using GUI framework (AWT and SWING)
2. Develop programs to handle events in Java programming
Actual Methodology Followed :
To complete this we followed procedure as we firstly we were finding the microject topic and
after finding it, we decided to do it. After selecting microproject we gathered information about it
from everywhere as much as we visited online sites. Then we started to write program it take more
days than usual.
And finally the program also completed !
Actual Resources Used (Mention the actual resources used).
sr.
Name of Resource/material Specifications Qty. Remarks
No.
Program Code :
package jlay;
import javax.swing.*;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.io.FileFilter;
import javafx.application.Platform;
import javafx.embed.swing.JFXPanel;
import javafx.scene.media.Media;
import javafx.scene.media.MediaPlayer;
import javafx.util.Duration;
public Layer() {
// Initialize JavaFX (since we are using JavaFX for media playback)
JFXPanel fxPanel = new JFXPanel();
if (selectedSong != null) {
for (File song : songs) {
if (song.getName().equals(selectedSong)) {
playSong(song);
break;
}
}
}
} else {
JOptionPane.showMessageDialog(null, "No audio files found in the selected folder.");
}
}
mediaPlayer.setOnReady(() -> {
songSlider.setMaximum((int) mediaPlayer.getTotalDuration().toSeconds());
startSliderTimer();
});
11
mediaPlayer.play();
});
}
Output :
14
15
Conclusion :
Reference :
Books :
1. Java: The Complete Reference by Herbert Schildt
2. JavaFX 8: Introduction by Example by Carl Dea, Mark Heckler, Gerrit Grunwald, José
Pereda, and Sean Phillips
Websites :
1. Oracle's JavaFX Documentation
2. JavaZoom (JLayer)