Question: how to use jdialog in java swing?
Answer: JDialog can be customized according to user need . JDialog(Window o, String t) : creates an empty dialog with a specified window as its owner and specified title. JDialog(Dialog o, String s) : creates an empty dialog with a specified dialog as its owner and specified title.