A Chat App using Java FX to demonstrate TCP/IP Connection
You will need the following things properly installed on your computer.
After Installing JavaFX Scene Builder to your computer you need to:
- Open Eclipse
- Click Window -> Preferences
- Click on JavaFX
- Browse the SceneBuilder executable for the installed JavaFX Scene Builder 2.0.exe.
On your Terminal or Git Shell execute the following command on the directory where you want to clone the project.
$ git clone https://github.com/GabrielRivera21/ChatAppFx.git
- Click on File -> Import...
- Select on General -> Existing Projects into Workspace
- Then specify the directory where you cloned the project on Root Directory
- Check the Checkbox of the Project
- Click Finish
In order to run this Chat App on your local computer you must deploy the ChatServer first and then open a ChatClient and connect to that ChatServer.
- Right-Click
ChatServer.java
-> Run As -> Java Application - Then Click on Start on the GUI to start the Server.
- Right-Click
ChatClient.java
-> Run As -> Java Application - Leave
localhost
on Host IP Field and Type in theUsername
you want. - Click Login on the GUI and you should see yourself connected.