Introduction Lectures
This module gives the background required to follow the course.
1. Introduction to The Course
- The organization of the course, and which assignments there are, is explained on the Course Layout page.
- This video wishes you welcome, and gives an overview of the course, introduction
Links to an external site.
2. Architecture And Design
architecture
Links to an external site.
In order to write code that handles network communication in a good way, we need a basic understanding of code organization as such. Therefore, this video repeats basic architectural concepts. The video contains no programming example, but the architecture introduced here is used in programming examples throughout the course. If you wish, you can also read about this architecture in section 5.3 of A First Course in Object-Oriented Development Links to an external site.. You must use a well-designed layered architecture in all homeworks and in the project, but you are not required to use exactly the layers presented here.
3. Graphical User Interface
This part shows how to create a GUI with JavaFX. Note that GUIs are optional in all assignments. It does never affect your grade if you use a command line user interface instead.
Source Code
The programming examples can be found in GitHub, https://github.com/KTH-ID1212/gui
Videos
- Introduction to JavaFX
Links to an external site.
- Components, layout and events. This video illustrates the following.
- Components that can be added to a JavaFX GUI
- How to place components in a window
- How to execute code when the user clicks or types
JavaFX components, layout and events Links to an external site.
- This video shows how to create a multithreaded GUI
JavaFX and Threads Links to an external site. - A programming example with a bigger GUI, javafx-text-entry-prog.webm
Links to an external site.. This video illustrates the following.
- How to separate view and controller.
- How to define the GUI in an XML file.
- How to use the scene builder to define the GUI.
4. Multithreading
This part explains how to use multiple threads in a program.
Videos
- Introduction to multithreading, this is the presentation used in the video, multithreading.pdf
Download multithreading.pdf
Introduction to multithreading Links to an external site. - An overview of the built-in thread pool and the class CompletableFuture, which are both used in programming examples.
The JVM built-in thread pool and the class CompletableFuture Links to an external site.