Swing dialogs are a part of Java Swing that enable you to write graphical windows that can be used for user interaction. The main difference between a dialog and a window is that dialogs are modal and cannot be ignored by the user.
This video demonstrates how to write you own dialog and then moves onto demonstrate a ready-prepared dialog. Dialogs already exist for opening files, picking colours, picking dates and other standard functions.