Path: csiph.com!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Jeff Higgins Newsgroups: comp.lang.java.gui Subject: Re: How to change rows from a database table using a SWT table Date: Sun, 18 Mar 2012 06:54:44 -0400 Organization: A noiseless patient Spider Lines: 22 Message-ID: References: <87r4wrxtq3.fsf@Compaq.site> <87ipi2xm18.fsf@Compaq.site> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 18 Mar 2012 10:53:09 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="BSKXKq4dV+7jFlM4JDctyw"; logging-data="6220"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18HJVaNYaRp2mZGweoq3PaXu8umARk3Fzo=" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20120207 Icedove/3.0.11 In-Reply-To: <87ipi2xm18.fsf@Compaq.site> Cancel-Lock: sha1:ZxrWuRXncp1sUDBWzUScnhBVYK8= Xref: csiph.com comp.lang.java.gui:5098 On 03/18/2012 06:04 AM, Cecil Westerhof wrote: > Op zaterdag 17 mrt 2012 22:21 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