![]() Each look and feel has its own versions of the four standard icons. You can use a custom icon, no icon at all, or any one of four standard JOptionPane icons (question, information, warning, and error). JOptionPane's icon support lets you easily specify which icon the dialog displays. ![]() When you create a JOptionPane, look-and-feel-specific code adds components to the JOptionPane and determines the layout of those components. You can even specify that an option pane put itself into an internal frame ( JInternalFrame) instead of a JDialog. Other features allow you to customize the components the dialog displays and specify where the dialog should appear onscreen. JOptionPane provides support for laying out standard dialogs, providing icons, specifying the dialog title and text, and customizing the button text. Using JOptionPane, you can quickly create and customize several different kinds of dialogs. The dialog will disappear from the screen until you deiconify the DialogDemo window.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |