This project is a simple chat room application developed using Java, JavaFX, Sockets, and Multithreading. The chat room allows multiple clients to connect to a server and communicate with each other.
- Multiple clients can connect to the server.
- Clients can send messages to all connected clients.
- The server broadcasts messages to all connected clients.
- The application has a simple graphical user interface developed using JavaFX.
- Java 8 or higher
- JavaFX
- Intellij or another Java IDE
- Maven
-
Clone the repository using the following command:
git clone https://github.com/JonMukaj/ChatRoom.git
-
Open the project in your Java IDE.
-
Compile and run Server with maven plugin to start the server.
-
Compile and run Client with maven plugin to start the client.
-
Enter a username and click the "Connect" button to connect to the server.
-
Type a message in the text field and press enter to send the message.
-
In addition for ease of use, we have provided executables initially for Windows and Linux, which can be used even in systems where JDK is missing. You can find the executables on the "platforms" directory.
The server listens for incoming connections from clients. When a client connects, the server creates a new thread to handle communication with that client. The server listens for messages from all connected clients and broadcasts those messages to all other connected clients.
The client sends messages to the server by creating a new thread to handle communication with the server. The client listens for incoming messages from the server and displays them in the graphical user interface.
This project is licensed under the MIT License.