Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.java > #8608

Re: Consiglio procedura

Path csiph.com!news.mixmin.net!aioe.org!.POSTED!not-for-mail
From "Dr.UgoGagliardelli" <do.not.spam@me.please>
Newsgroups it.comp.java
Subject Re: Consiglio procedura
Date Mon, 12 Oct 2015 18:47:07 +0200
Organization Aioe.org NNTP Server
Lines 16
Message-ID <mvgo67$pu3$1@speranza.aioe.org> (permalink)
References <mvgnis$oa4$1@speranza.aioe.org>
NNTP-Posting-Host bD61OKoFF7ZO0t1S5Exurg.user.speranza.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:38.0) Gecko/20100101 Thunderbird/38.3.0
X-Notice Filtered by postfilter v. 0.8.2
Xref csiph.com it.comp.java:8608

Show key headers only | View raw


Il 12.10.2015 18.33, Gulp® ha scritto:
> Dopo aver effettuato un Delete sul database, per ottenere il refresh
> della jtable, richiamo il void che apre il database e quindi
> ri-visualizza su jtable.
>
> oppure posso usare
>
> model.removeRow(Grid.getSelectedRow());
>
> Qual'è in realtà la procedura più corretta?
>
Come al solito sei un po' vago.
I casi che intuisco sono due:
- hai cancellato una sola riga e sai anche quale, allora removeRow va bene.
- se invece devi cancellarne piu' d'una, allora conviene ricaricare il 
modello previo model.setRowCount(0); che cancella tutte le righe.

Back to it.comp.java | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Consiglio procedura Gulp® <gulp@hotmail.it> - 2015-10-12 18:33 +0200
  Re: Consiglio procedura "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-10-12 18:47 +0200
    Re: Consiglio procedura Gulp® <gulp@hotmail.it> - 2015-10-12 18:57 +0200
      Re: Consiglio procedura "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-10-12 19:13 +0200

csiph-web