DZone Java Zone
Follow
How to Create Dialog Boxes in Java
Dialog boxes are graphical components that are usually used to display errors or give some other information (e.g., request input) to the user. They are commonly part of the three top-level containers that each Java graphical user interface (GUI) application must have as a root. Dialogs are typically associated with a parent frame. Their dependence on frames means that when you close a frame, all its associated dialog boxes also close. However, note that minimizing (iconifying) a frame does not automatically minimize its dialogs in modern Java implementations.This Java programming tutorial introduces developers to creating and working with dialog boxes in Java GUI applications.