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: bilsch Newsgroups: comp.lang.java.programmer Subject: Re: I need a different approach - suggestions please Date: Tue, 26 Jun 2012 13:59:16 -0700 Organization: A noiseless patient Spider Lines: 14 Message-ID: References: <7s4ju7lcde55pdegmp613d1lkk7a8ktgej@4ax.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 26 Jun 2012 20:59:16 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="VpQo9AeuZ2WQvbzkl6vgHQ"; logging-data="7387"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+JLsKpNGChMVpM4xoKsH8G" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 In-Reply-To: <7s4ju7lcde55pdegmp613d1lkk7a8ktgej@4ax.com> Cancel-Lock: sha1:/jm+dF8O2wYDhmt8qt+20ZdOsCU= Xref: csiph.com comp.lang.java.programmer:15611 On 6/26/2012 3:49 AM, Roedy Green wrote: > On Mon, 25 Jun 2012 15:31:32 -0700, bilsch wrote, > quoted or indirectly quoted someone who said : > >> JButton sev = new JButton("7"); >> JButton ate = new JButton("8"); >> JButton nin = new JButton("9"); > > you code will simplify if use use a array of JButtorns or some > subclass of JButtons. I realize there are better alternatives. I don't know any right offhand. I have many more buttons than shown in the example. Thanks for the advise. I like your website.