Path: csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: Cecil Westerhof Newsgroups: comp.lang.java.gui Subject: Re: How to change rows from a database table using a SWT table Date: Sun, 18 Mar 2012 12:59:29 +0100 Organization: Decebal Computing Lines: 31 Message-ID: <878viyxgpq.fsf@Compaq.site> References: <87r4wrxtq3.fsf@Compaq.site> <87ipi2xm18.fsf@Compaq.site> NNTP-Posting-Host: lYLrXPFpjyZ8237ODaoN+w.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:jjbS7rBCqXHrNAlwGH9ySYM6wyA= X-Homepage: http://www.decebal.nl/ Xref: csiph.com comp.lang.java.gui:5099 Op zondag 18 mrt 2012 11:54 CET schreef Jeff Higgins: >>>> At the moment I am building a little desktop application. I am using >>>> SWT for this. One of the things I want to use is a database. I can >>>> fill a SWT Table with the values I retrieve with a select. (Using a >>>> TableItem for each row of the ResultSet.) Adding to both tables does >>>> not pose a problem either. But I was wondering how to handle edits and >>>> deletes. For this I need the key of a record, but I would not want to >>>> display the keys in my table. >>>> >>>> How can I get edit and delete functionality without showing the keys >>>> to the user? >>>> >>> Can you use JFace? >> >> Properly. Something else to learn then. ;-} >> > Lars Vogel has some tutorials that were helpful for me. > JFace Tables > JFace Data Binding I found some of his pages also. But it looks like he is only working with a internal list, not with a database table. But I'll look into it. All the code (Lars and others) is quit verbose. :-{ -- Cecil Westerhof Senior Software Engineer LinkedIn: http://www.linkedin.com/in/cecilwesterhof