0% found this document useful (0 votes)
4 views

music player java project

The document describes the development of a music player application that allows users to create and manage playlists. It includes details on the design and implementation using Java, focusing on animation, UI design, and mouse listener functionality. The application enables users to select songs, play/pause music, and navigate through their playlists easily.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

music player java project

The document describes the development of a music player application that allows users to create and manage playlists. It includes details on the design and implementation using Java, focusing on animation, UI design, and mouse listener functionality. The application enables users to select songs, play/pause music, and navigate through their playlists easily.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

MPlay Music

Player

Group Members Distribution


● Priyanshi Raman 19803006 Design & Implementation, Animation
● Aniket Kumar 19803012 Output, Methodology, ExitFrame, Main
● Agnideep Mukherjee 19803015 Technology and SRS, MouseListener

Abstract
There is no place in the world that isn’t growing in terms of music, may it be
country, rock or classical music. Everyone likes to disconnect from the world for a
bit by playing some music. What we have got here is a playlist making interface,
which can be used to make a playlist by selecting the songs that match the mood of
the person at the time. It lets you add/delete songs and play the next/previous song
in the playlist.

Design and Implementation


● ANIMATION IN JAVA: A quick presentation of a sequence of images that
produces the illusion of movement is known as animation. A Swing timer, a
regular utility timer, and a thread might all be used.
➢ To create animation with the first method, we'll utilize a Swing timer.
This is the simplest, yet ineffective, method of animating objects in
Java games.
➢ The second method is fairly similar to the one before it. Instead of
using javax.Swing.Timer, we use java.util.Timer. This method is more
accurate for Java Swing games.
2

➢ Animating objects via a thread is the most efficient and precise


method.

● UI DESIGN IN JAVA: Swing Designer is a Java GUI designer that makes it


simple to construct Java GUI apps without having to spend a lot of time
writing code. The WYSIWYG visual designer allows you to construct complex
windows in minutes, and the Java code is created for you. Drag-and-drop
allows you to simply create controls, add event handlers to your controls,
alter various properties of controls using a property editor, internationalise
your app, and much more. SWT can reverse-engineer most hand-written Java
GUI design code, and the resultant code does not require any additional
special libraries to compile and run. The following components make up the
editor:
➢ The major visual layout area is the Design View.
➢ Write code and review the resulting code in the Source View.
➢ The Component Tree and the Property Pane make up the Structure
View.
➢ Component Tree - depicts the components' hierarchical relationships.
➢ The Property Pane shows the properties and events of the
components that have been selected.
➢ Toolkit-specific components can be quickly accessed using the Palette.
➢ Toolbar - gives you quick access to frequently used commands.
➢ Context Menu - gives you quick access to frequently used commands.

● JAVA MOUSE LISTENER: MouseListener is a Java class that receives


notifications when the mouse state changes. The mouse can be changed by
pressing, clicking, and releasing it. It could potentially be coming into or
leaving the window area. The keyword implements are used by
Mouselistener, and this listener interface can be found in the java.awt.event
package. The various methods that it entails are mouseClicked,
mouseEntered, mouseExited, mousePressed and mouseReleased.
3

Flow of the Program


4

Technology Used
● ECLIPSE IDE: Our Java Integrated Development Environment (IDE) is
well-known, but we also have a variety of other useful IDEs, such as our
C/C++ IDE, JavaScript/TypeScript IDE, PHP IDE, and others.
Any of its default packages can include multiple languages support and other
features, and the Eclipse Interface allows for nearly infinite modification and
expansion.

System Requirements
Operating System should be capable of playing music and have any of mentioned
OS installed
Platform Included: Eclipse
CPU Type: intel core i3 or higher; 2 GHz or higher
Memory/RAM: 1 GB minimum, up to the system limit
Hard Disk: 4 GB or higher
Graphics: X Window server or similar graphics server
Windows 8.1,10
Processor: 1 gigahertz (GHz) or faster.
Free hard disk space: 1 GB.
Graphics card: Microsoft DirectX 9 graphics device with WDDM driver.
5

Output and Results


When we compile and run the code, a new window will open.

This is the music player platform that we have created:


6

Here, we can select the music files from our file directory.

Select the songs you want to play.


7

The first song will start playing.

Now, we can play/pause or next/prev buttons to stop or play or change the songs or we
can select the song directly from the playlist.
8

Finally, to close the music player we can use the exit button.
9

Conclusion
We have established this platform to help the user import songs from the file
manager on his computer and create a playlist. It lets you play the songs you want
to listen to, easily transitioning from one to the other.

References
● https://www.educba.com/java-mouselistener/
● https://www.genuitec.com/docs/visual-design/java-gui-design-using-swtswing
/
● https://zetcode.com/javagames/animation/

Link for the Source Code


https://drive.google.com/file/d/1nvUSvmmPBh7nVuZB2fP8CKFnPjczinph/vie
w?usp=sharing

You might also like