Skip to content

EmAdd9/SwingChat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Java Swing and Socket-based Chatting Application

Chatting Application

This project is a Java-based chatting application that enables real-time communication between host and client machines. It utilizes Java Swing for the graphical user interface and Socket Programming for establishing network communication.

Features

  • User-friendly interface with rich text-box for sending messages and text-box for composing messages.
  • Real-time communication between the host and client machines.
  • Proper message encoding, sending, decoding, and display in the rich text-box.
  • Efficient server startup sequence to ensure smooth communication.

Tools & Technologies Used

  • Java Swing: For building the graphical user interface.
  • Socket Programming: For establishing network communication between host and client.
  • Java Threads: For handling multiple connections and ensuring concurrent communication.
  • Web Services: For handling the exchange of messages between users.

How to Use

  1. Clone the repository to your local machine.
  2. Open the project in your favorite Java IDE (e.g., Eclipse, IntelliJ).
  3. Run the ChatServer.java class to start the server.
  4. Run the ChatClient.java class to start the client application.
  5. The client application will open a GUI where you can enter the server address and connect to the chat room.
  6. Once connected, you can type messages in the message composing text-box and send them using the send button.
  7. Received messages will be displayed in the rich text-box.

Contribution

This project is open to contributions. If you find any issues or have ideas for improvements, feel free to open an issue or submit a pull request.

Acknowledgments

Special thanks to the developers and contributors who have helped in making this application possible.

Note: Please ensure that you have Java JDK and a compatible IDE installed on your machine before running the application.

For any additional details, questions, or support, feel free to contact Sudeb.

Happy chatting!