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
Have you even STARTED? Can you create the class to hold this frame at least? Which part do you not understand. Just having someone WRITE it for you is not a very good learning tool.
"JavaRanch, where the deer and the Certified play" - David O'Meara
machines help you to do more, but experience less. Experience this tiny ad:
a bit of art, as a gift, that will fit in a stocking