This week's book giveaway is in the OCAJP forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide 1Z0-808 and have Jeanne Boyarsky & Scott Selikoff on-line! See this thread for details.
In the constructor of JDialog (or Dialog) we have to pass the name of the owner and a boolean value.but where to give the name of the window which i want to be modal? Do i need to implement some method of JDialog (or Dialog) to give the name of target window. thanks
According to the javax.swing.JDialog documentation, you pass it a reference to it's parent dialog/frame (in your example, frame1), an optional boolean to indicate modality and an optional String title.