A Java-based chatting application that enables two users to communicate with each other in real-time, using the Swing graphical user interface and Socket Programming for network communication.
The Java Chatting Application provides a platform for two users to exchange text messages in real-time. It is built using the Swing package for the graphical user interface and Socket Programming to establish a network connection between the users. This application demonstrates basic client-server communication for instant messaging.
- User-friendly chat interface
- Real-time message exchange
- User identification and timestamp
- Connect and communicate over a local network
- Java SE (Standard Edition)
- Java Swing for GUI components
- Socket Programming for network communication
To run the Chatting Application locally, follow these steps:
- Clone the repository:
git clone https://github.com/atharvdange618/Chatting-Application.git
- Navigate to the project directory:
cd java-chatting-app
- Compile the Java source files:
javac *.java
- Start the server:
java Server
- Start two client instances:
java Client
Once the server and clients are running, two users can exchange messages in real-time. Each client has a graphical chat interface, where they can type and send messages. The server acts as a mediator, facilitating the communication between clients.
Contributions are welcome! If you'd like to improve this Chatting Application, please follow these steps:
- Fork the repository
- Create a new branch:
git checkout -b feature/new-feature
- Implement your changes and commit them:
git commit -m "Add new feature"
- Push to the branch:
git push origin feature/new-feature
- Create a pull request
This project is licensed under the MIT License.