Article View: borland.public.jbuilder.java.swing
Article #1178Re: Removing Selected rows in JTable
From: Delali Dzirasa
Date: Tue, 20 Jan 2004 20:10
Date: Tue, 20 Jan 2004 20:10
29 lines
1949 bytes
1949 bytes
Thanks that did the trick! Delali "John McGrath [TeamB]" <ng-b@JPMcGrath.net> wrote in message news:400d7e34$1@newsgroups.borland.com... > On 1/20/2004 at 11:00:40 AM, Delali Dzirasa wrote: > > > This may be a silly question but doesn't this code handle that? > > > JTable table = new JTable(myTable); > > No. That declares a new local variable, creates a JTable object, and > initializes the variable to refer to the newly newly created JTable. > The "table" member declaration is shadowed by the declaration, so it is > not affected. > > What you probably want to do is to remove the "JTable" from that line: > > table = new JTable(myTable); > > -- > Regards, > > John McGrath [TeamB] > > --------------------------------------------------- > Before sending me e-mail, please read: > http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<400d8b4c$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<400c0372@newsgroups.borland.com> <400c2d2b$1@newsgroups.borland.com> <400c3798$1@newsgroups.borland.com> <400c92ae@newsgroups.borland.com> <400d50a7$2@newsgroups.borland.com> <400d7e34$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,c6be5540fdc67be3 X-Google-Attributes: gid111d45,public X-Google-ArrivalTime: 2004-01-20 12:32:21 PST From: "Delali Dzirasa" <Delali.Dzirasa@jhuapl.edu> Newsgroups: borland.public.jbuilder.java.swing References: <400c0372@newsgroups.borland.com> <400c2d2b$1@newsgroups.borland.com> <400c3798$1@newsgroups.borland.com> <400c92ae@newsgroups.borland.com> <400d50a7$2@newsgroups.borland.com> <400d7e34$1@newsgroups.borland.com> Subject: Re: Removing Selected rows in JTable Date: Tue, 20 Jan 2004 15:10:52 -0500 Lines: 31 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 128.244.232.236 Message-ID: <400d8b4c$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1074629452 128.244.232.236 (20 Jan 2004 12:10:52 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail