🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #18768

Re: How to ? Buttons! Disable after using, re-enable on exit from new frame.

#18768
From: Clint Brewer
Date: Sat, 25 Apr 1998 00:00
34 lines
1625 bytes
Hi ,

   Actually I stand corrected,

you need to do a call to button1.setEnabled(true)
or  button1.setEnabled(false)

Thanks to Andrew Bennett for pointing this out,
I apologize for any confusion <sparkling smile*>

Clint Brewer

Clint Brewer wrote:

> Alan J Wright wrote:
> >
> > Specifically, a buttonclick on one frame will display another frame(s).
> > How do you disable the button to prevent the user generating multiple
> > identical frames?  Then, how do you re-enable the button on Frame1 after
> > exiting from Frame2?  New to this.  Wading through JBuilder Essentials.
> > Hiding frame1 not acceptable in this appl.
>
> Hello Alan,
>
>    For the buttonControl, to disable it, set
> buttonControl.enabled=false;
>
> For your frame to , add an onclose event, and in that event, set
> buttonControl.enabled=true;
>
> I believe that this should do it(but i didn't try it out)
>
> Clint Brewer
Technical Details
Message-ID: <3541C220.E4D8A2A8@borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <01bd6e49$430968c0$693261cb@haw35.tacacs.canterbury.ac.nz> <353FFE06.3020@borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,44d95d47efbdcfcb
X-Google-Attributes: gidf74b3,public
From: Clint Brewer <supportinfo@borland.com>
Subject: Re: How to ?  Buttons!  Disable after using, re-enable on exit from new frame.
Date: 1998/04/25
Message-ID: <3541C220.E4D8A2A8@borland.com>
X-Deja-AN: 347439253
Content-Transfer-Encoding: 7bit
References: <01bd6e49$430968c0$693261cb@haw35.tacacs.canterbury.ac.nz> <353FFE06.3020@borland.com>
Mime-Version: 1.0
To: Clint Brewer <supportinfo@borland.com>
Content-Type: text/plain; charset=us-ascii
Organization: Borland International Developer Support
Newsgroups: borland.public.jbuilder.java.language