11. Dialogs

Chances are that at some point in your application, you’ll need to display a dialog to communicate with the user. The NetBeans Platform has a Dialogs API that provides a collection of predefined dialogs and related utilities. Dialog types include simple messages, Yes-No confirmations, OK-Cancel confirmations, and dialogs that request input. The standard dialogs are also configurable, but if the standard fare is not flexible enough for you, you can always create a custom dialog.

In this chapter, we’ll explore all of these offerings.

What You Will Learn

• Create standard message, confirmation, and input line dialogs.

• Customize standard dialogs.

• Process user responses in dialogs.

• Customize dialogs.

• Provide error handling with ...

Get JavaFX Rich Client Programming on the NetBeans Platform 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.