AJP Microproject-1
AJP Microproject-1
Micro Project :
Guided By :
Mrs. Karkare Madam
Project By :
Java was originally developed by James Gosling at Sun Microsystems (which has since been acquired by
Oracle) and released in 1995 as a core component of Sun Microsystems' Java platform. The original and
reference implementation Java compilers, virtual machines, and class libraries were originally 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 and used by most developers and is the default
JVM for almost all Linux distributions.
Music Player lets you manage all your music files quickly and easily . This audio player supports
almost all types of mp3 , midi ,wav , flac raw aac files and other audio formats .
Easily browse and play music songs by genres , albums , artists , songs and folder.
Media is integral parts of our lives. We are creating media player using java to handle all the music
requirements of user.
James Gosling, Mike Sheridan, and Patrick Naughton initiated the Java language project in June 1991.
Java was originally designed for interactive television, but it was too advanced for the digital cable
television industry at the time. The language was initially called Oak after an oak tree that stood outside
Gosling's office. Later the project went by the name Green and was finally 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.
Code:-
package jlay;
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);
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();
}
}
Outputs of Micro-Projects
Advanced Features
Seek Bar: Display and allow users to skip through the track.