Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| Path | csiph.com!aioe.org!.POSTED!not-for-mail |
|---|---|
| From | Oliviero <abcxyz@micso.net> |
| Newsgroups | it.comp.java |
| Subject | Re: Widget espandibile |
| Date | Wed, 13 Sep 2017 17:48:39 +0200 |
| Organization | Aioe.org NNTP Server |
| Lines | 30 |
| Message-ID | <opbk0n$1c81$1@gioia.aioe.org> (permalink) |
| References | <oo97q0$5m3$1@gioia.aioe.org> <oo98cf$74p$1@gioia.aioe.org> |
| NNTP-Posting-Host | QVmZtzN9mZOORf79ZTYX2A.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 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 |
| Content-Language | it |
| X-Antivirus | Avast (VPS 170912-12, 12/09/2017), Outbound message |
| X-Notice | Filtered by postfilter v. 0.8.2 |
| X-Antivirus-Status | Clean |
| Xref | csiph.com it.comp.java:9247 |
Show key headers only | View raw
>> 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?
>>
> JButton piu = new JButton("+"),
> piu.addActionListener(new ActionListener() {
> public void actionPerformed(ActionEvent event) {
> aggiungiCampo();
> }
> });
> finestra.add(piu);
Ho un JButton che quando cliccato fa apparire una finestra con un numero
variabile di JComponent, la finestra ha due
JButton "+" e "-" con cui si può aumentare o diminuire il numero di
JComponent, vorrei che una volta usciti dalla finestra
e si ri-clicca sul JButton ri-apparisse la finestra con il numero di
JComponent precedentemente stabilito, invece appare
sempre il numero di JComponent iniziale (quello quando ancora non è
stato mai cliccato il JButton "+"), come posso fare?
Per il numero variabile di JComponent ho utilizzato un
ArrayList<JComponent> (che dovrà essere memorizzato su un file),
è la soluzione corretta?
---
Questa e-mail è stata controllata per individuare virus con Avast antivirus.
https://www.avast.com/antivirus
Back to it.comp.java | Previous | Next — Previous in thread | Next in thread | Find similar
Widget espandibile Oliviero <abcxyz@micso.net> - 2017-08-31 16:51 +0200
Re: Widget espandibile "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2017-08-31 17:01 +0200
Re: Widget espandibile Oliviero <abcxyz@micso.net> - 2017-09-13 17:48 +0200
Re: Widget espandibile "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2017-09-14 07:17 +0200
Re: Widget espandibile Oliviero <abcxyz@micso.net> - 2017-09-15 20:27 +0200
Re: Widget espandibile "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2017-09-16 07:29 +0200
csiph-web