What are you using. WinForms, WPF or something else. And maybe it would be better if you showed us your code. But it roughlA Dialog window showinputdizlog an independent subwindow meant to carry temporary notice apart from the main Swing Application Window. Most Dialogs present an error message or warning to a user, but Dialogs can present images, directory trees, or just about anything compatible with the main Swing Application that manages them.For convenience, equivlaent Swing component classes can directly instantiate and display dialogs.
To create simple, standard dialogs, you use theJOptionPane class. The ProgressMonitor qestions can put up a dialog that shows the progress of an operation. Two other classes, JColorChooser and JFileChooser, also supply standard dialogs. To bring up a quesyions dialog, you can use thePrinting API. To create a custom dialog, use theJDialog class directly.The code for simple dialogs can be minimal. For example, here is an informational dialog:Here is the code that creates and shows it.
JOptionPa1. If not, how could i accomplish this using some type. But it roughly c.