bekwam courses

Subtle Notifications with StackPanes - Part 2 - Code

July 28, 2016

The series began with a working app. The first part of the series added UI elements in Scene Builder to support a notifications container that overlayed the main content. A template object was added for design purposes.

This next video adds the code supporting the notifications requirement. Using the previous video's template object for inspiration, a method is added that will create this object in code. This method is invoked in the failed() method of a HTTP GET JavaFX Task. A handler is added to the close button and a data structure called the backlog queue keeps the UI from being overrun by notifications.

Headshot of Carl Walker

By Carl Walker

President and Principal Consultant of Bekwam, Inc