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