What is "joptionpane"
Using JOptionPane
, you can quickly create and customize various different types of dialogs. JOptionPane
provides support for creating standard dialogs, allowing display of icons, specifying the title of the dialog box, message to be displayed and customizing the text of the button.
Other features allow you to customize the components that the dialog box displays and specify where the dialog box should appear on the screen. You can even specify that an option panel will be placed in an internal frame (JInternalFrame
) instead of a JDialog
.
When you create a specific code for JOptionPane
, the look-and-Feel adds components to the JOptionPane
and determines the layout of these components.
Icon support allows you to easily specify the icon displayed in the dialog box. You can use a custom icon, no icon, or any of the four default icons. Each look and Feel has its own versions of the four standard icons.
For more information see the section How to Make Dialogs documentation. More examples can be found here.