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


Groups > it.comp.java > #8547

Re: del ed errore

Path csiph.com!news.mixmin.net!aioe.org!.POSTED!not-for-mail
From Gulp® <gulp@hotmail.it>
Newsgroups it.comp.java
Subject Re: del ed errore
Date Sat, 26 Sep 2015 09:48:09 +0200
Organization Aioe.org NNTP Server
Lines 41
Message-ID <mu5iq6$fpl$1@speranza.aioe.org> (permalink)
References <mu3d0c$qn2$1@speranza.aioe.org> <mu5gb6$a8g$1@speranza.aioe.org>
NNTP-Posting-Host O2XEw6YQDPNENRMOP+bKDA.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.1; rv:38.0) Gecko/20100101 Thunderbird/38.2.0
X-Notice Filtered by postfilter v. 0.8.2
Xref csiph.com it.comp.java:8547

Show key headers only | View raw


Il 26/09/15 09:09, Dr.UgoGagliardelli ha scritto:
> Il 25.09.2015 13.57, Gulp® ha scritto:
>> Dopo la cancellazione di una riga di dati, mi compare:
>>
>> java.lang.ArrayIndexOutOfBoundsException: -1
>>
>> Indica che ho problemi col puntatore?
>>
> Definisci 'riga di dati'.
> Guardati il javaDoc.

Record visualizzato in una javatab.
Ogni tanto do anche un'occhiata al javaDoc, ma l'inglese non è mio 
amico... :) e faccio un po' fatica.

Grazie comunque sempre per la tua disponibilità. Se continuo in questo 
sforzo con Java è anche grazie a te.

private void EliminaVoce() {
int selectedRow = GridListino.getSelectedRow();
sigla=GridListino.getModel().getValueAt(selectedRow,0).toString();
desc=GridListino.getModel().getValueAt(selectedRow,1).toString(); 

conn = DriverManager.getConnection("jdbc:hsqldb:file:" + Path + 
"/dbase/opto","sa","");
conn.setReadOnly(false);
st = conn.createStatement();
st.execute("Delete from \"listino\" Where SIGLA ='" + sigla + "' And 
DEFINIZION='" + desc + "'");
st.close();
conn.close();

MostraListino("SELECT SIGLA,DEFINIZION,PREZZO,ID FROM \"listino\" ORDER 
BY SIGLA,DEFINIZION");

Ma l'errore me lo dà MostraListino e non capisco perchè, dal momento che 
la stessa void all'apertura del window funziona regolarmente.

-- 
Gulp®
(forse mi sono perso qualcosa :))

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


Thread

del ed errore Gulp® <gulp@hotmail.it> - 2015-09-25 13:57 +0200
  Re: del ed errore 4ndre4 <a.laforgia@gmail.com> - 2015-09-25 05:39 -0700
    Re: del ed errore Gulp® <gulp@hotmail.it> - 2015-09-26 09:36 +0200
      Re: del ed errore rootkit <rootkit@email.it> - 2015-09-26 00:56 -0700
        Re: del ed errore Gulp® <gulp@hotmail.it> - 2015-09-26 12:57 +0200
          Re: del ed errore rootkit <rootkit@email.it> - 2015-09-26 04:15 -0700
            Re: del ed errore Gulp® <gulp@hotmail.it> - 2015-09-26 13:31 +0200
      Re: del ed errore 4ndre4 <a.laforgia@gmail.com> - 2015-09-27 01:47 -0700
  Re: del ed errore "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-09-26 09:09 +0200
    Re: del ed errore Gulp® <gulp@hotmail.it> - 2015-09-26 09:48 +0200
      Re: del ed errore "Nando" <geremia@tim.it> - 2015-09-26 11:33 +0200
        Re: del ed errore Gulp® <gulp@hotmail.it> - 2015-09-26 13:42 +0200
      Re: del ed errore 4ndre4 <a.laforgia@gmail.com> - 2015-09-27 01:50 -0700
        Re: del ed errore Gulp® <gulp@hotmail.it> - 2015-09-28 15:11 +0200
      Re: del ed errore "Dr.UgoGagliardelli" <do.not.spam@me.please> - 2015-09-27 13:05 +0200
    Re: del ed errore 4ndre4 <a.laforgia@gmail.com> - 2015-09-27 01:48 -0700

csiph-web