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


Groups > it.comp.java > #8608

Re: Consiglio procedura

From "Dr.UgoGagliardelli" <do.not.spam@me.please>
Newsgroups it.comp.java
Subject Re: Consiglio procedura
Date 2015-10-12 18:47 +0200
Organization Aioe.org NNTP Server
Message-ID <mvgo67$pu3$1@speranza.aioe.org> (permalink)
References <mvgnis$oa4$1@speranza.aioe.org>

Show all headers | 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