Micro Project Report On: Chat Application in Java (Using Client+Server Sockets)
Micro Project Report On: Chat Application in Java (Using Client+Server Sockets)
CERTIFICATE
A client-server chat application consists of a Chat Client and a Chat Server and there exists a
two-way communication between them. Here, the Message Processor is used to interpret the
message from the user, Message Interpreter is used to extract and pass the received message.
Message Maker is used to construct back the message and Client Manager is used to maintain
the clients list which the sender and receiver on both sides use to interact with each other.
Parth Mane
7 Viva voce
} catch (Exception e) {
e.printStackTrace();
}
}
});
con = new Socket("127.0.0.1", 8080);
while (true) {
try {
try {
Thread.sleep(2000);
System.exit(0);
} catch (InterruptedException e) {
e.printStackTrace();
}
}
public ClientEnd() {
initialize();
}
if (textField.getText().equals("")) {
JOptionPane.showMessageDialog(null, "Please write some text !");
}else {
textArea.setText(textArea.getText() + "\n" + "Client : " +
textField.getText());
try {
DataOutputStream output = new
DataOutputStream(con.getOutputStream());
output.writeUTF(textField.getText());
} catch (IOException e1) {
}
textField.setText("");
}
}
});
btnNewButton.setFont(new Font("Georgia", Font.BOLD, 22));
btnNewButton.setForeground(Color.WHITE);
btnNewButton.setBackground(Color.RED);
btnNewButton.setBounds(398, 45, 164, 38);
frame.getContentPane().add(btnNewButton);
import java.awt.Color;
import java.awt.EventQueue;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.JTextField;
import javax.swing.UIManager;
serverConnection();
con = server.accept();
lblNewLabel_2.setText("Client found !");
lblNewLabel_2.setForeground(new Color(0, 0, 128));
while (true) {
try {
try {
Thread.sleep(2000);
System.exit(0);
} catch (InterruptedException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
}
btnNewButton.addActionListener(new ActionListener() {
if (textField.getText().equals("")) {
JOptionPane.showMessageDialog(null, "Please write some text !");
}
else if(textField.isFocusable()){
btnNewButton.setEnabled(true);
textArea.setText(textArea.getText() + "\n" + "Server : " +
textField.getText());
try {
DataOutputStream output = new
DataOutputStream(con.getOutputStream());
output.writeUTF(textField.getText());
} catch (IOException e1) {
textArea.setText(textArea.getText() + "\n " + " Network issues");
try {
Thread.sleep(2000);
System.exit(0);
} catch (InterruptedException e2) {
e2.printStackTrace();
}
}
textField.setText("");
}
}
});
btnNewButton.setFont(new Font("Comic Sans MS", Font.BOLD, 24));
btnNewButton.setForeground(new Color(255, 255, 255));
btnNewButton.setBackground(Color.BLUE);
btnNewButton.setBounds(390, 66, 164, 38);
frmServerChat.getContentPane().add(btnNewButton);
}
}
7.0 Output Of the Micro project
t
8.0 Skill Developed/Learning Out of This Micro-Project:
1) Basic Knowledge
2) Lifelong learning
3) Teamwork
4) Engineering tools
5) Follow Ethics.
6) To collect information from different sources
10.0 References:
1. https://www.geeksforgeeks.org/simple-chat-application-using-sockets-in-java/
2. https://github.com/soumyadip007/Chat-Server-Application-Using-JAVA-Swing-Socket
3. https://en.wikipedia.org/wiki/Client%E2%80%93server_model
Annexure–IV
Teacher Evaluation Sheet
Name of Student: Bhagat Pranay Dnyaneshwar Enrollment No:2205630242
Name of Program: INFORMATION TECHNOLOGY Semester: FIFTH
Course Title: ADVANCED JAVA PROGRAMMING Code: 22517
Title of the Micro Project: CHAT APPLICATION IN JAVA
Course Outcomes Achieved:
a. Develop program using GUI framework (AWT and Swing)
b. Handle events of AWT and Swing Components.
c. Develop programs to handle events in Java Programming.
d. Develop Java Programs using Socket Concepts.
e. Develop programs using Servlets.
Evaluation as per Suggested Rubric for Assessment of Micro-Project
Sr. Characteristic to be Assessed Poor Average Good Excellent Sub
No (Marks 1-3) (Marks 4-5) (Marks 6- (Marks 9- Total
8) 10)
(A) Process and Product Assessment (Covert above total marks out of 6 Marks)
1 Relevance to the course
Literature Survey / Information
2
Collection
Completion of the Target as per
3
project proposal
Analysis of Data and
4
Representation
5 Quality of Prototype/Model
6 Report Preparation
(B) Individual Presentation / Viva (Convert above total marks out of 4 Marks)
7 Presentation
8 Defense
(A) Process and Product Assessment (B) Individual Presentation / Viva Total Marks
(6 Marks) (4 marks) (10 Marks)
Annexure–IV
Teacher Evaluation Sheet
Name of Student: Narwade Gaurav Tatyasaheb Enrollment No: 2205630243
Name of Program: INFORMATION TECHNOLOGY Semester: FIFTH
Course Title: ADVANCED JAVA PROGRAMMING Code: 22517
Title of the Micro Project: CHAT APPLICATION IN JAVA
Course Outcomes Achieved:
a. Develop program using GUI framework (AWT and Swing)
b. Handle events of AWT and Swing Components.
c. Develop programs to handle events in Java Programming.
d. Develop Java Programs using Socket Concepts.
e. Develop programs using Servlets.
Evaluation as per Suggested Rubric for Assessment of Micro-Project
Sr. Characteristic to be Assessed Poor Average Good Excellent Sub
No (Marks 1-3) (Marks 4-5) (Marks 6- (Marks 9- Total
8) 10)
(A) Process and Product Assessment (Covert above total marks out of 6 Marks)
1 Relevance to the course
Literature Survey / Information
2
Collection
Completion of the Target as per
3
project proposal
Analysis of Data and
4
Representation
5 Quality of Prototype/Model
6 Report Preparation
(B) Individual Presentation / Viva (Convert above total marks out of 4 Marks)
7 Presentation
8 Defense
(A) Process and Product Assessment (B) Individual Presentation / Viva Total Marks
(6 Marks) (4 marks) (10 Marks)
Annexure–IV
Teacher Evaluation Sheet
Name of Student: Talekar Anushki Amit Enrollment No: 2205630245
Name of Program: INFORMATION TECHNOLOGY Semester: FIFTH
Course Title: ADVANCED JAVA PROGRAMMING Code: 22517
Title of the Micro Project: CHAT APPLICATION IN JAVA
Course Outcomes Achieved:
a. Develop program using GUI framework (AWT and Swing)
b. Handle events of AWT and Swing Components.
c. Develop programs to handle events in Java Programming.
d. Develop Java Programs using Socket Concepts.
e. Develop programs using Servlets.
Evaluation as per Suggested Rubric for Assessment of Micro-Project
Sr. Characteristic to be Assessed Poor Average Good Excellent Sub
No (Marks 1-3) (Marks 4-5) (Marks 6- (Marks 9- Total
8) 10)
(A) Process and Product Assessment (Covert above total marks out of 6 Marks)
1 Relevance to the course
Literature Survey / Information
2
Collection
Completion of the Target as per
3
project proposal
Analysis of Data and
4
Representation
5 Quality of Prototype/Model
6 Report Preparation
(B) Individual Presentation / Viva (Convert above total marks out of 4 Marks)
7 Presentation
8 Defense
(A) Process and Product Assessment (B) Individual Presentation / Viva Total Marks
(6 Marks) (4 marks) (10 Marks)
Annexure–IV
Teacher Evaluation Sheet
Name of Student: Mane Parth Omswarup Enrollment No: 2205630246
Name of Program: INFORMATION TECHNOLOGY Semester: FIFTH
Course Title: ADVANCED JAVA PROGRAMMING Code: 22517
Title of the Micro Project: CHAT APPLICATION IN JAVA
Course Outcomes Achieved:
a. Develop program using GUI framework (AWT and Swing)
b. Handle events of AWT and Swing Components.
c. Develop programs to handle events in Java Programming.
d. Develop Java Programs using Socket Concepts.
e. Develop programs using Servlets.
Evaluation as per Suggested Rubric for Assessment of Micro-Project
Sr. Characteristic to be Assessed Poor Average Good Excellent Sub
No (Marks 1-3) (Marks 4-5) (Marks 6- (Marks 9- Total
8) 10)
(A) Process and Product Assessment (Covert above total marks out of 6 Marks)
1 Relevance to the course
Literature Survey / Information
2
Collection
Completion of the Target as per
3
project proposal
Analysis of Data and
4
Representation
5 Quality of Prototype/Model
6 Report Preparation
(B) Individual Presentation / Viva (Convert above total marks out of 4 Marks)
7 Presentation
8 Defense
(A) Process and Product Assessment (B) Individual Presentation / Viva Total Marks
(6 Marks) (4 marks) (10 Marks)
Annexure–IV
Teacher Evaluation Sheet
Name of Student: Thakar Jai Manish Enrollment No:2205630247
Name of Program: INFORMATION TECHNOLOGY Semester: FIFTH
Course Title: ADVANCED JAVA PROGRAMMING Code: 22517
Title of the Micro Project: CHAT APPLICATION IN JAVA
Course Outcomes Achieved:
a. Develop program using GUI framework (AWT and Swing)
b. Handle events of AWT and Swing Components.
c. Develop programs to handle events in Java Programming.
d. Develop Java Programs using Socket Concepts.
e. Develop programs using Servlets.
Evaluation as per Suggested Rubric for Assessment of Micro-Project
Sr. Characteristic to be Assessed Poor Average Good Excellent Sub
No (Marks 1-3) (Marks 4-5) (Marks 6- (Marks 9- Total
8) 10)
(A) Process and Product Assessment (Covert above total marks out of 6 Marks)
1 Relevance to the course
Literature Survey / Information
2
Collection
Completion of the Target as per
3
project proposal
Analysis of Data and
4
Representation
5 Quality of Prototype/Model
6 Report Preparation
(B) Individual Presentation / Viva (Convert above total marks out of 4 Marks)
7 Presentation
8 Defense