This project demonstrates basic JavaFX (UI), networking and threading concepts. Three lessons take the user from no code to a JavaFX application which talks to a multi-threaded server.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
- Java JDK
- An IDE or compiler
- git
Each lesson is included within a branch on the git repo. The master
branch contains the fully functional code. Other branches:
Lesson-1-Uppercase-UI
- A basic JavaFX UI which accepts user input, alters the input and displays the altered textLesson-2a-Server
- A server implementation demonstrating sockets and threadsLesson-2b-Client
- An optional lesson with client code that tests the serverLesson-3-UIServer
- Alter the code UI from lesson 1 to talk to the server from lesson 2a
In order to run a lesson, you will need to checkout the corresponding branch:
git checkout <branchname>
Where branchname
is the name of the lesson to check out.
To run the UI (Lesson-1-Uppercase-UI
and Lesson-3-UIServer
):
java sample.Main
To run the server (Lesson-2a-Server
):
java sample.RemoteServer
To run the client (Lesson-2b-Client
):
java sample.RemoteServerClient
Note that the server needs to be running for master
, Lesson-2b-Client
and Lesson-3-UIServer
.
We use SemVer for versioning. For the versions available, see the tags on this repository.
- John Ghidiu - Initial work - JohnGhidiu
This project is licensed under the MIT License - see the LICENSE file for details
- Dave Ghidiu for the concepts and design