Board index » jbuilder » show frame

show frame


2003-09-28 02:34:19 PM
jbuilder1
Hi im working with Jbuilder and i want to press a bottom and show a new
frame... i can do that now, but if i press the bottom again the frame appear
again an again so i want to know how to lock this action
 
 

Re:show frame

On 9/28/2003 at 2:34:19 AM, flavio veliz wrote:
Quote
Hi im working with Jbuilder and i want to press a bottom and show a
new frame... i can do that now, but if i press the bottom again the
frame appear again an again so i want to know how to lock this action
It is easy to disable the button when you create the new frame -- just
call setEnabled() on the button. But you will probably want to enable
the button again when the user closes the frame. To do that, you will
want to add a WindowListener to the frame and re-enable the button on
the windowClosed() event.
--
Regards,
John McGrath [TeamB]
---------------------------------------------------
Before sending me e-mail, please read:
www.JPMcGrath.net/newsgroups/e-mail.html