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.
Scenario is: Frame 'frm' has a button 'btn' on it. When the user clicks on the 'btn', a new frame 'frmB' will be popped out, leaving the 'btn' in 'frm' disabled. When the user close 'frmB', 'btn' will be activated again. Please help with source code. Thanks.
Have a look at the <code>setEnabled()</code> method of java.awt.Component, which is inherited by java.awt.Button. You may also want to investigate the <code>setVisisble()</code> and <code>dispose()</code> methods that java.awt.Frame inherits. Hope this helps Michael ------------------ "One good thing about music - when it hits, you feel no pain" Bob Marley
"One good thing about music - when it hits, you feel no pain" <P>Bob Marley