An open API service indexing awesome lists of open source software.

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

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.