Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: markspace <-@.> Newsgroups: comp.lang.java.gui Subject: Re: Java editres Date: Fri, 27 Jul 2012 18:51:53 -0700 Organization: A noiseless patient Spider Lines: 25 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sat, 28 Jul 2012 01:51:55 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="61282af8d6595e8d991edb5ac03d6e00"; logging-data="21971"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/2GqBxwjckw07U3SvyLLw0GJ7lz5plaB0=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0 In-Reply-To: Cancel-Lock: sha1:HysGV8zuMrAG22TzncMqpbDNHoA= Xref: csiph.com comp.lang.java.gui:5210 On 7/27/2012 5:58 PM, John B. Matthews wrote: > In article , > FredK wrote: > >> Is there a java equivalent of the Xt editres program (displays a tree >> of all of the GUI components of a program, allows editing resource >> values, flashes selected components, etc.) ? > > There are some ideas here: > > > If he's talking about just live components, and not default resources (and he may mean both), I think I've seen someone use the WindowToolKit (sp?) to do this. Set a window created listener. Each new top level window created then fires your listener. You can then add each window to a hash map or something, and iterate over its component tree when needed. I'm not sure still if the OP means *programatically*, or if he's looking for an external tool like a debugger to do this, because I don't know his Xt program well (or at all, even).