X-Received: by 10.224.200.202 with SMTP id ex10mr19914583qab.8.1370474854054; Wed, 05 Jun 2013 16:27:34 -0700 (PDT) X-Received: by 10.49.40.168 with SMTP id y8mr2686109qek.9.1370474854025; Wed, 05 Jun 2013 16:27:34 -0700 (PDT) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!p1no2036782qaj.0!news-out.google.com!y6ni328qax.0!nntp.google.com!p1no2036774qaj.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.java.programmer Date: Wed, 5 Jun 2013 16:27:33 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=172.162.130.117; posting-account=r24XpwkAAABfAJg5TJRsTScS4AL5MjOT NNTP-Posting-Host: 172.162.130.117 References: <566ff119-faa8-4116-9761-65002a3c1cb3@w8g2000yqf.googlegroups.com> <3e3557ff-431c-4a9f-bf7c-777eeaeb65f7@w15g2000vbn.googlegroups.com> <653739d6-b70e-4e57-9af2-2dfaa66fec79@k4g2000yqb.googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Code Included: Freeze column From: clusardi2k@aol.com Injection-Date: Wed, 05 Jun 2013 23:27:34 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: csiph.com comp.lang.java.programmer:24314 On Wednesday, June 5, 2013 4:02:04 PM UTC-4, John B. Matthews wrote: > In article , Haircuts Are Important wrote: > On Jun 4, 11:04=A0pm, = "John B. Matthews" wrote: > > In article > > , > > =A0Hairc= uts Are Important wrote: > > > > > The capability that I am = trying to get is this. I have two tables > > > with the right one being a l= ot larger than the left one. What I > > > have been attempting to do is scr= oll the right table vertically > > > and have the left table scroll vertica= lly at the same time. > > > > Summarizing some of my earlier suggestions on= shared models and > > timers, the sscce below illustrates how I would proc= eed. I've also > > used the event dispatch thread and shown an alternate ap= proach to > > scrolling. > > > > [...] > > This appears to be useful, but I= have a few improvements to ask about. > > (1) The table automatically scro= lls to one less than the number of > rows in the table. It does not scroll = to the last row! > > (2) When resizing the window, how do you get both tabl= es to show more > rows. The tables show only about 25 rows and never the la= st row. My example starts with 100 rows, numbered 0 .. 99; added rows are n= umbered 42. I don't recall the numbering used in your examples. Apropos to = this, I would reiterate Lew's question about your now deleted examples. As = Joerg Meier helpfully observed, they can be retrieved from one's NNTP serve= r, but you might clarify your preference. > (3 When I, myself, do begin to = add more code to this project where > should I be concerned about exception= s occurring. Will adding "try- > catch" pairs get me around all exceptions.= What exceptions can I > ignore. When should I use a SwingWorker. Without c= ontext, the short answers are these: don't swallow exceptions and don't blo= ck the EDT. -- John B. Matthews trashgod at gmail dot com Thanks for your code I think I can get the vertical scrolling to work by adding an extra row at = the very top of the two tables. I'll then insert data into that empty row a= nd create a new empty row each time after I add the data. So, the automatic= vertical scrolling will never show the empty bottom row. About only showing about 25 rows. I meant to say that the scrolling works. = I do see all the rows created, but the project only shows 25 at a time. So,= I see 0 through 25, then 1 through 26, then 2 through 27, ..., then n thro= ugh n+25. So, I was wondering if it would be possible to be able to see mor= e than 25 rows at a time apon a resize via a mouse drag.