0% found this document useful (0 votes)
44 views15 pages

Hitesh Ajp

The document discusses a certificate for completing a micro project on music player development using advanced Java concepts. It details the objectives and outcomes achieved through the project, evaluation process, weekly progress reports and index of the project contents.

Uploaded by

hitup292
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views15 pages

Hitesh Ajp

The document discusses a certificate for completing a micro project on music player development using advanced Java concepts. It details the objectives and outcomes achieved through the project, evaluation process, weekly progress reports and index of the project contents.

Uploaded by

hitup292
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 15

CERTIFICATE

This is to certify that Mr./Ms Hitesh patil Roll No:36 of Fifth Semester of
Diploma in Computer Engineering of Institute, LOKNETE GOPINATHJI
MUNDE INSTITUTE OF ENGINEERING
EDUCATION & RESEARCH ,NASHIK (Code: 1477) has completed the
Micro Project satisfactorily in Subject – Advanced Java Programming
(22517) for the academic year 2023- 2024 as prescribed in the curriculum.

Place: Nashik Enrollment No:1714770058

Date: Exam Seat No: .

Subject Teacher Head of Department Principal

Seal of institute
ANEEXURE II
Evaluation Sheet for the Micro Project

Academic Year: 2023-24 Name of Faculty:Prof.B.S.Chaudhary


Course: AJP Course code: 22517
Semester: V

Title of the project: Music Player

Cos addressed by Micro Project:


A: Develop program Using GUI framework (AWT & Swing)
B: Handle events of AWT and Swings.
C: Develop programs to handle Events in Java programming.
D: Develop java programs using Networking Concepts.
E: Develop program using Database.
F: Develop program using Servlets.
Major learning outcomes achieved by students by doing the project
(a) Practical outcome:
1) Write a program to retrieve hostname and IP Address in Inet Address.
2) Write a program to establish successful connection to database.
3) Write a program to demonstrate Mouse Motion Event on applet Window.
4) Write a program to launch a progress bar on button click.
5) Write a program to using the components List and Choice.
6) Write a Servlet for demonstrating the concept of Session and Cookies.
(b) Unit outcomes in Cognitive domain:
1) Use Inet Address class to know the IP address of the given host name.
2) Choose JDBC or ODBC depending on the given application requirements.
3) Use relevant AWT / Swing component(s) to handle the given event.
4) Use relevant Generic servlet to develop given web based application.
5) Use the given type of button in Java based GUI.
6) Create Frame window with the specified AWT.
(c) Outcomes in Affective domain:
1. Practice good housekeeping.
2. Follow safe practices..
Comments/suggestions about team work /leadership/inter-personal communication (if any)
…………………………………………………………………………………………………

Marks out of 6 Marks out of


Roll Student Name for 4for Total out
No. performance in performance in of 10
group activity oral/
(D5 Col.8) presentation (D5
Col.9)

23 Hitesh patil

(Signature of Faculty)

2
WEEKLY PROGRESS REPORT

MICRO PROJECT
SR.NO. WEEK ACTIVITY PERFORMED DATE SIGN OF GUIDE

Discussion and finalization


1 1st of topic

Preparation and submission of


2 2nd Abstract

3 3rd Literature Review

4 4th and 5th Collection of Data

5 6th and 7th Collection of Data

6 8th and 9th Discussion and outline of Content

7 10th Formulation of Content

Editing and proof Reading of


8 11th and 12th
Content

9 Compilation of Report
13th And Presentation

10 Seminar
14th

11 Viva voce
15th

12 Final submission of Micro Project


16th

Prof. B.S Chaudhary


(Signature of Student) (Signature of Faculty)

3
INDEX

SR.NO. CONTENT PAGE NO.

1 Acknowledgement 6

2 Introduction 7

3 Java Swing 8

4 Working of the Project 10

5 Source Code of the Project 11

6 Output of the Project 21

7 Conclusion & References 25

4
ACKNOWLEDGEMENT

I am very thanking full to LOGMIEER who has given me opportunity to


have project knowledge of Professional practices.

I am also thankful to the means for providing me the information of


Professional Practices which is the base of the Project.

Lastly I am thankful to my subject teacher for proper guidance and co-


operative in preparation of the project work.

5
Introduction

Advanced Java it is part of the Java programing language. It mainly includes


Application programming interface (API) like Servlet Programming, Web
services, and persistent API and other concepts like java server pages(JSP),
java database connectivity (JDBC), remote method invocation (RMI), socket
programming, etc. Advanced Java is specifically designed to develop
network- centric, web-based, or enterprise applications, or we can say it is
specialization in a specific domain. Client and server architecture i.e. two-tier
architecture is used in developing applications using advanced java. Hence
applications that run on the server can be considered advanced java
applications.

Benefits of Advance Java


The four major benefits of advance Java that are, network centric, process simplification,
and futuristic imaging standard.

o JEE (advance Java) provides libraries to understand the concept of


Client- Server architecture for web- based applications.
o We can also work with web and application servers such as Apache
Tomcat and Glassfish Using these servers, we can understand the
working of HTTP protocol. It cannot be done in core Java.
o It is also important understand the advance Java if you are dealing with
trading technologies like Hadoop, cloud-native and data science.
o It provides a set of services, API and protocols, that provides the
functionality which is necessary for developing multi-tiered
application, web-based application.
o There is a number of advance Java frameworks like, Spring,
Hibernate, Struts, that enables us to develop secure transaction-
based web applications such as banking application, inventory
management application

6
Java Swing

Swing has about four times the number of User Interface [UI] components as
AWT and is part of the standard Java distribution. By today’s application
GUI requirements, AWT is a limited implementation, not quite capable of
providing the components required for developing complex GUI’s required in
modern commercial applications. The AWT component set has quite a few
bugs and really does take up a lot of system resources when compared to
equivalent Swing resources. Netscape introduced its Internet Foundation
Classes [IFC] library for use with Java. Its Classes became very popular with
programmers creating GUI’s for commercial applications.

o Swing is a Set Of API ( API- Set Of Classes and Interfaces )


o Swing is Provided to Design Graphical User Interfaces
o Swing is an Extension library to the AWT (Abstract Window Toolkit)
o Includes New and improved Components that have been enhancing
the looks and Functionality of GUIs’
o Swing can be used to build(Develop) The Standalone swing GUI Apps
Also as Servlets And Applets
o It Employs model/view design architecture
o Swing is more portable and more flexible than AWT, The Swing
is built on top of the AWT
o Swing is Entirely written in Java
o Java Swing Components are Platform-independent And The
Swing Components are lightweight
o Swing Supports a Pluggable look and feels And Swing provides
more powerful components
o such as tables, lists, Scrollpanes, Colourchooser, tabbedpane, etc
o Further Swing Follows MVC.

7
Swing Hierarchy :

8
Working Of The Project

In This microproject we are going to study about “Music Player” using


advanced java. Advanced java is special type of program that is object-oriented
.This allows us to create modular programs and reusable code. Here we are
using label ,button ,ActionListener.

HOME PAGE:

In this project I create music progress bar.

In this music player we gives some number to the user then arrange the number
in proper format.

CREATION OF JFRAME:
This is the code where you will learn how to create the radio button, the
bookmark
button and the display of the application. You can set the foundation of the
widget
appearing, its location on the screen, its size etc.

HANDLING EVENTS:
This part of the code is responsible for your actions. Conditional statements
have
been used so as to act accordingly to the actions performed by the user

9
Source Code Of The Project
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;

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()
{
@Override
public void action Performed(ActionEvent actionEvent)
{
open_dialog();
}
}
);
main.add(choose);
JButton play = new JButton("Play");
play.addActionListener(new ActionListener() {
10
@Override
public void actionPerformed(ActionEvent actionEvent) {
try

11
{
player.play(100);
}
catch (Exception x){}
}
});
main.add(play);
JButton pause = new JButton("Pause");
pause.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent actionEvent) {
try
{
player.wait();
}
catch (Exception x){}
}
});
main.add(pause);
main.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
void open_dialog()
{
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();
}}
12
Output Of The Project

Before playing

13
After playing

14
Conclusion & References

 Conclusion :-
In this Project, we learned about how to create a form using AWT
components and also learned about Applet, Swing, Frame, Event
handling. Also we learned about validating the fields etc. Also we
study how to set questions and there answers in program.

 References :-
https://www.jigsawacademy.com/blogs/tutorial/advanced-java

https://www.javatpoint.com/java-swing

https://www.edureka.co/blog/advanced-java-tutorial

14

You might also like