You are on page 1of 4

This paper presents a project on Voice chatting and video conferencing a Java Project.

This project is based on audio and video transmission as well as reception. With the aid of this project, two or more persons can shat in an Intranet with one another. Along with this, the option of video conferencing is also provided too. Emphasis is given on the problem statement and the project is designed around it.

The project is programmed using the programming language JAVA. Along with this, Java development kit, Java media framework and Realtime transport protocol. This is an entire package which can be used to develop softwares relating to audio and video. Through this package, one can capture the media data and transmitting to the target device. Description: In this project Voice chatting and video conferencing a Java Project, it is based on a client-server type of application. Here the server handles all the traffic. The person who is from one network who desires to chat or hold a video conference with another person belonging to the other network then he has to send a request to the server. The server then accepts the request and a successful chat conversation can be held. In the same way the video conferencing could be performed.
import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JOptionPane; import javax.swing.JPasswordField; import javax.swing.JTextField; public class Password extends JFrame implements ActionListener {

JPasswordField password; JTextField Text1; JLabel login,pass,hea1; JButton ok,cancel; final String log = "routing"; final String passW = "location"; JFrame fpass; Password() { fpass = new JFrame("Login"); fpass.getContentPane().setLayout(null); hea1 = new JLabel("LOG IN SCREEN"); login = new JLabel("USER-ID"); Text1 = new JTextField(10); pass = new JLabel("PASSWORD"); password = new JPasswordField(10); ok = new JButton("OK"); cancel = new JButton("CANCEL"); hea1.setBounds(130,10,100,50); login.setBounds(70,40,70,50); Text1.setBounds(157,55,125,20); pass.setBounds(70,70,70,50); password.setBounds(158,83,125,20); ok.setBounds(80,130,90,20); cancel.setBounds(180,130,110,20); fpass.getContentPane().add(hea1); fpass.getContentPane().add(login); fpass.getContentPane().add(Text1); fpass.getContentPane().add(pass); fpass.getContentPane().add(password); fpass.getContentPane().add(ok); fpass.getContentPane().add(cancel); ok.addActionListener(this); cancel.addActionListener(this); fpass.setSize(400, 250); fpass.setVisible(true); } public void actionPerformed(ActionEvent e) { String s = e.getActionCommand(); if(s.equals("OK")) {

String str1; str1=Text1.getText(); String str2= new String (password.getPassword()); if(!str1.equals("admin")) { JOptionPane.showMessageDialog(null,"Invalid User-ID","Error",1); Text1.setText(""); password.setText(""); } if(!str2.equals("admin")) { JOptionPane.showMessageDialog(null,"Invalid Password","Error",1); Text1.setText(""); password.setText(""); } if(str1.equals("admin") && str2.equals("admin")) { fpass.setVisible(false); Sender sen=new Sender(); } } else if(s.equals("CANCEL")) { System.exit(0); } } public static void main(String ar[]) { Password ps = new Password(); ps.addWindowListener( new WindowAdapter() { public void windowClosing(WindowEvent e) { System.exit(0); } } ); //addWindowListener }//main method }

Java is used for programming purposes in this project and is a standard application providing a host of benefits. It possesses a higher level of programming than other languages. It is also well known for its high level of security features. Conclusion:

This project has designed an application which satisfies customer request. It also provides a good user interface and a good way of developing better communication. Thus by using this project, conversation can be implemented between loved ones, friends and others too. Also, this can be used for business purposes. Furthermore, many other additions can be enabled in the project.