AppletTalk.com Forum Index AppletTalk.com
Java discussions newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Tabelle ancora tabelle

 
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java (Italian)
View previous topic :: View next topic  
Author Message
godmetal@tiscali.it
Guest





PostPosted: Mon Oct 23, 2006 8:53 pm    Post subject: Tabelle ancora tabelle Reply with quote



Salve a tutti
sto studiando le API riguardanti le JTable. ho preso visione
dell'esempio che si trova a quest'indirizzo

http://java.sun.com/docs/books/tutorial/uiswing/components/examples/TableDemo.java


come potrete ben vedere è una JTable costruita da un
AbstractTableModel.
Quindi possiede tutte le caratteristiche avanzate rispetto ad una
tabella costruita dando soltanto al costruttore JTable l'array.
Di queste caratterististiche quella che mi interessa è la modifica dei
dati delle celle e soprattutto il controllo dei dati che vengono
inseriti , cioè se nella cella ci deve stare un int , se voi mettete
un char la cella si marchia di rosso e impedisce qualsiasi altra
modifica.
Ora il problema è questo ho creato una mia JTable utilizzando la
stessa AbstractTable Model dell'esempio, però questa funzione non la
fa.
Ho studiato e fatto varie prove per capire quale è il metodo che in
partilcolare esegue questa cosa ma non sono riuscito a capire, potete
aiutarmi?
grazie a tutti
Back to top
CarMas
Guest





PostPosted: Mon Oct 23, 2006 9:30 pm    Post subject: Re: Tabelle ancora tabelle Reply with quote



<godmetal (AT) tiscali (DOT) it> ha scritto nel messaggio

Quote:
Di queste caratterististiche quella che mi interessa è la modifica dei
dati delle celle e soprattutto il controllo dei dati che vengono
inseriti

Se non ricordo male, devi utilizzare i TableCellEditor.... (non ho esempi
sottomano pero')

Saluti
CarMas
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AppletTalk.com Forum Index -> Java (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.