JavaFX, NetBeans, SceneBuilder - Data Entry App - Part 09 - Exit Confirmation, handle X icon (close)

Опубликовано: 28 Февраль 2026
на канале: MoosesValley
612
9

Java, JavaFX, NetBeans, and Scene Builder.
In Part 09 of this tutorial series, we continue the development of our Student Admin App, and create a single Exit method that is called when user clicks the Exit button or the [X] icon in the top right hand corner of the application's window. There are many ways to do this. We use an Interface class and a simple Lambda expression.

My Github where you can find the source code for this video:
https://github.com/MooseValley/JavaFX...

List of all Tutorial Videos and Github Repos for the Java, JavaFX, NetBeans, SceneBuilder Tutorial series:
https://github.com/MooseValley/JavaFX...

FAQ:
Q. Why are you suddenly using Java, NetBeans, Scene Builder ??? What happened to TextPad ?
A. The courses I am now teaching use Java, NetBeans, Scene Builder, so my students use these tools, and therefore any videos I create for my students will use these tools.
Q. The way you have shown X,Y,Z is not the best way to do things ?
A. The videos are primarily for my students, and I show them how best to do things with the Java they have covered so far.

FREE Software used in this video:
Java Development Kit JDK 8u111 (v1.8.111) and NetBeans IDE 8.2 (Build 201705191307): https://www.oracle.com/technetwork/ja...
JavaFX Scene Builder 8.5.0 for Java 8: https://gluonhq.com/products/scene-bu...

My Java Software Development Tutorial Videos YouTube channel:
http://tinyurl.com/MikesJavaVideos

Moose OMalley
Moose's Software Valley - Established July, 1996,
https://moosevalley.github.io/