Path: csiph.com!news.redatomik.org!aioe.org!.POSTED!not-for-mail From: "Dr.UgoGagliardelli" Newsgroups: it.comp.java Subject: Re: Widget espandibile Date: Thu, 31 Aug 2017 17:01:05 +0200 Organization: Aioe.org NNTP Server Lines: 17 Message-ID: References: NNTP-Posting-Host: IM70YtvQum+NjWHJagiW3Q.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 Content-Language: it-IT X-Antivirus: Avast (VPS 170830-2, 30/08/2017), Outbound message X-Antivirus-Status: Clean X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com it.comp.java:9246 Il 31.08.2017 16.51, Oliviero ha scritto: > Devo inserire in una finestra un widget a forma di "+" (o qualcosa di > simile) che se cliccato fa apparire un numero > variabile di JTextField, come posso fare? > > --- > Questa e-mail è stata controllata per individuare virus con Avast > antivirus. > https://www.avast.com/antivirus > JButton piu = new JButton("+"), piu.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent event) { aggiungiCampo(); } }); finestra.add(piu);