© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
P. SpäthFrontend Development with JavaFX and Kotlinhttps://doi.org/10.1007/978-1-4842-9717-9_7

7. Events

Peter Späth1  
(1)
Leipzig, Germany
 

Event handling traditionally is an important topic in frontend development. This is because users often do something like clicking the mouse button or entering text, and the application is supposed to appropriately react to it. In this chapter, we talk about the way JavaFX handles events, as usual stressing Kotlin techniques for streamlining our coding.

What Events Are and Event Processing

Events are occurrences of interest, with mouse and keyboard actions being two predominant examples. In JavaFX, events get described ...

Get Frontend Development with JavaFX and Kotlin: Build State-of-the-Art Kotlin GUI Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.