A simple chat application with a graphical user interface (GUI) implemented in Java. This project includes both client and server components for real-time messaging over a network.
- Client-server architecture
- Real-time text messaging
- Simple and intuitive GUI for both client and server
- Written in Java
ChatAppGUI.iml
src/
chatappgui/
Client.java
Server.java
- Java Development Kit (JDK) 8 or higher
- Windows, macOS, or Linux
- (Optional) IntelliJ IDEA or any Java IDE for easier development
-
Clone or Download the Repository
- If you haven't already, clone this repository or download the source code to your local machine.
-
Open a Terminal/Command Prompt
- Navigate to the project directory:
cd ChatAppGUI/src
- Navigate to the project directory:
-
Compile the Java Files
- Run the following command to compile both the server and client:
javac chatappgui/Server.java chatappgui/Client.java
- Run the following command to compile both the server and client:
-
Start the Server
- In the terminal, run:
java chatappgui.Server
- In the terminal, run:
-
Start the Client(s)
- Open a new terminal window for each client you want to run, then execute:
java chatappgui.Client
- Open a new terminal window for each client you want to run, then execute:
-
Chat!
- With the server running, clients can connect and exchange messages in real time.
- Start the server first.
- Launch one or more clients to connect to the server and begin chatting.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
This project is open source and available under the MIT License.