This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
i am using 2 JFrames, one JFrame( say Frame 'A') calling other ( Say Frame 'B')as a dialog Frame, but the problem i am facing is that when both the frames are visible then i can also click on Frame A, instead i want that when both of them are visible than i can only operate on Frame B(Just As FRAME B IS A DIALOG), and clicking on Frame A will also Give Focus to Frame B.
The solution is to avoid creating classes that create JFrames or JDialogs if possible, but instead have your GUI classes produce JPanels. This way you gives you a lot more flexibility and allows you to place your GUIs (JPanels) inside of either of the two root containers, a JApplet, or any other containers as you desire.