This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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.