Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: Jeff Higgins Newsgroups: comp.lang.java.programmer Subject: Re: Disabling generated buttons Date: Mon, 02 Feb 2015 08:48:14 -0500 Organization: A noiseless patient Spider Lines: 25 Message-ID: References: <874mr41ox9.fsf@Equus.decebal.nl> <87zj8wzcr2.fsf@Equus.decebal.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 2 Feb 2015 13:51:23 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="c50a9e5d554cfaba13eda1c71e805135"; logging-data="6474"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+BxqurKMNCLFtH6Dtg7K1YgXq9q+KAmjk=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.4.0 In-Reply-To: Cancel-Lock: sha1:DwIe6hT7Egwzta40TlgFIEo6QHU= Xref: csiph.com comp.lang.java.programmer:31008 On 02/02/2015 08:26 AM, Jeff Higgins wrote: > On 02/02/2015 08:03 AM, Cecil Westerhof wrote: >> Op Monday 2 Feb 2015 13:47 CET schreef Jeff Higgins: >> >>> On 02/02/2015 07:24 AM, Cecil Westerhof wrote: >>> >>>> How would I do this? >>>> >>> MyButton.setEnabled(false); >>> +.5s >>> MyButton.setEnabled(true); >> >> That is for buttons that are stored in a variable, but these are not >> stored in a variable but generated. >> > Shrug? > Generate a list of references to the buttons you wish to disable? > Use MagicButtons? > Walk the containment hierarchy, call .setEnabled(false) on pertinent buttons +.5s Walk the containment hierarchy, call .setEnabled(true) on pertinent buttons