Frontend development with Javafx and Kotlin by Peter Späth (2023)

Building elegant and highly responsible, responsive, and stable Java client applications (fat clients) is a highly acceptable approach if security considerations or network availability speaks against web applications, or maintaining servers and server applications lies out of scope for your project. Additionally, using Kotlin as a programming language boosts code expressiveness and maintainability, allowing for a development yielding a clean code approach.

The book introduces JavaFX as a frontend technology and from the very beginning focuses on using Kotlin instead of Java for coding the program artifacts. Many listings and code snippets accompany the text, readily allowing for a hands-on learning style.

cover

{

Table Of Contents

}

The Book’s Targeted Audience

The book is for low- to mid-level Java or Kotlin developers with or without JavaFX experience, wishing to learn how to build JavaFX applications with Kotlin. The readers will in the end be able to use Kotlin as a language for building basic to moderately advanced and elaborated apps targeting JavaFX. Any experience in using JavaFX and frontend coding is not a requirement for reading the book. Being a Kotlin expert is not necessary either, but having read introductory-level books or studied online resources is surely helpful. The online documentation of Kotlin and JavaFX also provides valuable resources you can use as a reference while reading this book.

How to Read This Book

This book should be read sequentially to get the most benefit from it. Of course, you can skip one or the other chapter if you already gained knowledge elsewhere. Taking its introductory nature, the book is not meant to present a reference fully covering each and every aspect of Kotlin frontend programming or JavaFX, so also consulting the online documentation at

while you are reading the book certainly is not a bad idea.

The book is split up into nine chapters. Chapter 1 gives a general introduction and presents hello world-style programs for Gradle, Eclipse, and IntelliJ.

Chapter 2 talks about using properties as data holders and addresses one- and two-way binding techniques for connecting controls and data in your program.

Chapter 3 introduces stages and scenes, which serve as primordial containers for visual artifacts.

Chapter 4 talks about containers and ways to lay out and style your scenes.

Chapter 5 handles nodes and controls including styling. These aspects usually constitute the biggest part of your project work speaking of time budget.

Chapter 6 presents lists and tables, which are particularly important for enterprise-level projects.

Chapter 7 is for summarizing and deepening our knowledge about event handling in JavaFX. This also includes drag and drop procedures.

Chapter 8 introduces effects and animation, improving user experience and giving your programs some eye candies.

As a prospect, Chapter 9 briefly introduces concurrency techniques, giving you a starting point for handling background processing needs.

Download

ebook


See also