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

java fina

The document details a micro-project on developing a 'Music Player' using Advanced Java Programming, submitted by Kanishka Gumgaonkar under the guidance of Ms. A.D. Mate at Sou. Venutai Chavan Polytechnic. It outlines the project's aim, methodology, resources required, and the skills developed, along with a source code example and applications of the project. The project emphasizes the use of GUI frameworks, event handling, and database integration.
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)
3 views

java fina

The document details a micro-project on developing a 'Music Player' using Advanced Java Programming, submitted by Kanishka Gumgaonkar under the guidance of Ms. A.D. Mate at Sou. Venutai Chavan Polytechnic. It outlines the project's aim, methodology, resources required, and the skills developed, along with a source code example and applications of the project. The project emphasizes the use of GUI frameworks, event handling, and database integration.
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/ 19

A

Microproject on

“AtmInterface using java ”

Submitted by

Kanishka Gumgaonkar

Under Guidance of

Ms. A.D.Mate

Diploma Course in Computer Technology

(As per directives of I Scheme, MSBTE)

Sinhgad Institutes

Sinhgad Technical Education Society’s

SOU. VENUTAI CHAVAN POLYTECHNIC

PUNE - 411041

ACADEMIC YEAR 2024-2025


-

Maharashtra State Board of Technical


Education
Certificate
This is to certify that Ms. Kanishka Gumgaonkar with Roll No. 59 of Semester V of
Diploma in Computer Technology of Institute Sou. Venutai Chavan Polytechnic
(Code: 0040) has successfully completed the Micro-Project in Advance Java
Programming (22517) for the year 2023-25 as prescribed in the curriculum.

Pune Enrollment No:23210390346

Date: Exam Seat No:

Ms.A.D.Mate Mrs. A.V. Kurkute Dr.(Mrs.)M.S.Jadhav


Course Teacher Head of Department Principal
Advance Java Programming (22517) Music Player

Content

Sr.No Title Pg.No

1 Aim of the Microproject 1

2 Rationale 3

3 Course Outcome achieved 4

4 Literature Review 5

5 Actual Methodology Followed 6

6 Actual Resources Used 7

7 Skill Developed 8

8 Applications 9

Department of Computer Technology Academic Year 2024-25 1


Advance Java Programming (22517) Music Player

Annexure – I
Micro-Project Proposal Music
Player

1.0 Aim of the Micro – Project:


This Micro-Project aims at developing a program for ‘Music Player’ using Advance Java
Programming.

2.0 Intended Course Outcomes:


a. Develop a program using GUI framework (AWT and Swing).
b. Handle events of AWT and Swing components.
c. Develop a programs to handle event in Java Programming.
d. Develop program using Database.

3.0 Proposed Methodology:


This Micro-Project aims at developing a program for ‘Music Player’ using Advance Java
Programming.

1. Study all the concepts of Advance Java Programming.


2. Identify the requirements of project.
3. Prepare coding for the project and get output after executing it.
4. Test the working of the project.
5. Prepare the Final Report.

4.0 Action Plan:

Sr. Details of Activity Planned Planned Name of


No Start Date Finish Date Responsible Team
Member
Pallavi Dalvi
Identify the aim of the project. 01/09/2024 02/09/2024
01

Department of Computer Technology Academic Year 2024-25 2


Advance Java Programming (22517) Music Player

Understand which tools or Pallavi Dalvi


02 resources are used 03/09/2024 10/09/2024

Prepare coding for the project


03 and get output after executing 15/09/2024 Pallavi Dalvi
it. 20/09/2024

Pallavi Dalvi

04 Prepare the Final Report. 21/09/2024 28/09/2024

5.0 Resources Required:

Sr.No Name of Resources Specification Qty

1 Computer System JDK 21 1

2 Database My sql 1

6.0 Team Members:

Sr. No Roll. No Name of Student

01 57 Pallavi Maruti Dalvi

Department of Computer Technology Academic Year 2024-25 3


Advance Java Programming (22517) Music Player

Annexure - II

Micro-Project Report Music Player

1.0 Rationale:
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.

2.0 Aim of the Micro – Project:


This Micro-Project aims at developing a program for ‘Music Player’ using Advance Java
Programming.

3.0 Course Outcomes Addressed:


a. Develop a program using GUI framework (AWT and Swing).
b. Handle events of AWT and Swing components.
c. Develop a programs to handle event in Java Programming.
d. Develop program using Database.

4.0 Literature Review:


Java technology is widely used for web applications Based on OOP concepts and core java core
concepts it gives hands on experience and learning on GUI technologies viz. The development
of music players reflects advancements from analog devices (like record players) to digital
formats (like MP3 players and streaming platforms). Key innovations include digital audio
processing, allowing for efficient storage and playback, and user-friendly interfaces with
intuitive controls. Early portable devices like the Walkman and iPod shaped expectations for

Department of Computer Technology Academic Year 2024-25 4


Advance Java Programming (22517) Music Player

mobile music, while software-based players on computers (such as Winamp) introduced playlist
management and audio customization. Today, streaming technology dominates, making music
accessible anywhere with internet access and enabling seamless user experiences across
devices.

5.0 Actual Methodology Followed:


This Micro-Project aims at developing a program for ‘Music Player’ using Advance
Java Programming.
1. Study all the concepts of Advance Java Programming.
2. Identify the requirements of project.
3. Prepare coding for the project and get output after executing it.
4. Test the working of the project.
5. Prepare the Final Report.
6.0 Resources Required:

Sr.No Name of Resources Specification Qty

1 Computer System JDK 21 1

2 Database My sql 1

Department of Computer Technology Academic Year 2024-25 5


Advance Java Programming (22517) Music Player

7.0 Source Code:


import javax.sound.sampled.*;
import javax.swing.*; import java.awt.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.io.IOException;

public class GUIMusicPlayer extends JFrame implements ActionListener {


private JButton playButton, stopButton, loadButton; private JLabel
statusLabel; private Clip audioClip;
private AudioInputStream audioStream;

public GUIMusicPlayer() { setTitle("Java Music


Player"); setSize(300, 150);
setDefaultCloseOperation(EXIT_ON_CLOSE);
setLayout(new FlowLayout());

// GUI Components loadButton


= new JButton("Load"); playButton
= new JButton("Play"); stopButton
= new JButton("Stop");
statusLabel = new JLabel("No file loaded");

// Add components to frame


add(loadButton); add(playButton);
add(stopButton);
add(statusLabel);

// Disable play and stop initially playButton.setEnabled(false);


stopButton.setEnabled(false);

Department of Computer Technology Academic Year 2024-25 6


Advance Java Programming (22517) Music Player

// Button actions loadButton.addActionListener(this);


playButton.addActionListener(this);
stopButton.addActionListener(this);

setVisible(true);
}
@Override
public void actionPerformed(ActionEvent e) {
if (e.getSource() == loadButton) {
loadAudio(); } else if (e.getSource() ==
playButton) { playAudio();
} else if (e.getSource() == stopButton) { stopAudio();
}
}

private void loadAudio() {


JFileChooser fileChooser = new JFileChooser(); int
result = fileChooser.showOpenDialog(this);

if (result == JFileChooser.APPROVE_OPTION) {
File audioFile = fileChooser.getSelectedFile(); try
{
audioStream =
AudioSystem.getAudioInputStream(audioFile); audioClip =
AudioSystem.getClip(); audioClip.open(audioStream);
statusLabel.setText("Loaded: " + audioFile.getName());
playButton.setEnabled(true); stopButton.setEnabled(false);
} catch (UnsupportedAudioFileException | IOException | LineUnavailableException
ex) {
statusLabel.setText("Error loading audio file.");
ex.printStackTrace();
}
}
}

private void playAudio() {


if (audioClip != null) { audioClip.start();
audioClip.loop(Clip.LOOP_CONTINUOUSLY);
statusLabel.setText("Playing...");
playButton.setEnabled(false); stopButton.setEnabled(true);
}

Department of Computer Technology Academic Year 2024-25 7


Advance Java Programming (22517) Music Player

private void stopAudio() { if


(audioClip != null) { audioClip.stop();
statusLabel.setText("Stopped.");
playButton.setEnabled(true);
stopButton.setEnabled(false);
}
}

public static void main(String[] args) {


SwingUtilities.invokeLater(GUIMusicPlayer::new);
}
}

8.0 Output:

Department of Computer Technology Academic Year 2024-25 8


Advance Java Programming (22517) Music Player

Department of Computer Technology Academic Year 2024-25 9


Advance Java Programming (22517) Music Player
9.0 Skills Developed:
• During developing the Micro-Project, we learnt many practically applied concepts of
Advance Java Programming and theory as well.
• We learned to build code using various AWT and Swing components.
• We also learned how to connect database through Mysql.

10.0 Applications of this Project:


This project prepared using Advance Java Programming functions,finds its application and
significance in various situation like,
a. Mobile Applications.
b.Desktop GUI Applications.
c. Media System Applications.
d.Music and Android Applications.

11.0 Conclusion:

A music player is a practical, engaging that offers valuable insights into multimedia
programming. It combines essential skills like audio processing, file management, and user
interface design, making it an ideal choice for learning and developing interactive
applications. We build a Music Player using various GUI components.

12.0 References :
▪ www.tutorialspoint.com

▪ www.studytonight.com ▪ www.w3school.com
Advance Java Programming (22517) Music Player

Department of Computer Technology Academic Year 2024-25


10

You might also like