https://github.com/lizardcat/chatapp
Simple Java chat app
https://github.com/lizardcat/chatapp
Last synced: 12 months ago
JSON representation
Simple Java chat app
- Host: GitHub
- URL: https://github.com/lizardcat/chatapp
- Owner: lizardcat
- Created: 2025-01-31T13:24:57.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-10T07:06:14.000Z (over 1 year ago)
- Last Synced: 2025-03-29T10:47:12.738Z (about 1 year ago)
- Language: Java
- Size: 45.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Simple Java Chat Application
A simple multi-client chat application built with Java. This project demonstrates **server-client networking**, **multi-threading**, and **GUI interaction using Swing**.
## Features
- ✅ **Multi-client support** – Multiple users can chat in real-time.
- ✅ **Server-client architecture** – Clients connect to a central server.
- ✅ **Swing-based GUI** – A user-friendly chat interface.
- ✅ **Threaded communication** – Each client runs in a separate thread.
## How It Works
1. **ChatServer.java**
- Starts a server socket on port 12345.
- Accepts multiple clients via Threads.
- Broadcasts messages to all connected clients.
2. **ChatClient.java**
- Connects to the server via sockets.
- Sends user messages to the server.
- Receives broadcasted messages.
3. **ChatClientGUI.java**
- Provides a graphical user interface for the chat client.