Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #24311

Re: Code Included: Freeze column

From "John B. Matthews" <nospam@nospam.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: Code Included: Freeze column
Date 2013-06-05 16:02 -0400
Organization The Wasteland
Message-ID <nospam-AD9E78.16020405062013@news.aioe.org> (permalink)
References (6 earlier) <653739d6-b70e-4e57-9af2-2dfaa66fec79@k4g2000yqb.googlegroups.com> <nospam-6D2463.23033403062013@news.aioe.org> <dac8d849-cae0-48df-855b-07a3c0115d1a@d10g2000yqb.googlegroups.com> <nospam-1D56F4.23042504062013@news.aioe.org> <c4f1b073-9e07-4c7a-b1ee-c41ce897f98c@a8g2000yqp.googlegroups.com>

Show all headers | View raw


In article 
<c4f1b073-9e07-4c7a-b1ee-c41ce897f98c@a8g2000yqp.googlegroups.com>,
 Haircuts Are Important <clusardi2k@aol.com> wrote:

> On Jun 4, 11:04 pm, "John B. Matthews" <nos...@nospam.invalid> wrote:
> > In article
> > <dac8d849-cae0-48df-855b-07a3c0115...@d10g2000yqb.googlegroups.com>,
> >  Haircuts Are Important <clus@aol.com> wrote:
> >
> > > The capability that I am trying to get is this. I have two tables 
> > > with the right one being a lot larger than the left one. What I 
> > > have been attempting to do is scroll the right table vertically 
> > > and have the left table scroll vertically at the same time.
> >
> > Summarizing some of my earlier suggestions on shared models and 
> > timers, the sscce below illustrates how I would proceed. I've also 
> > used the event dispatch thread and shown an alternate approach to 
> > scrolling.
> >
> > [...]
> 
> This appears to be useful, but I have a few improvements to ask about.
> 
> (1) The table automatically scrolls 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 tables to show more 
> rows. The tables show only about 25 rows and never the last row.

My example starts with 100 rows, numbered 0 .. 99; added rows are 
numbered 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 server, 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 exceptions occurring. Will adding "try- 
> catch" pairs get me around all exceptions. What exceptions can I 
> ignore. When should I use a SwingWorker.

Without context, the short answers are these: don't swallow exceptions 
and don't block the EDT.

-- 
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>

Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Code Included: Freeze column Haircuts Are Important <clusardi2k@aol.com> - 2013-05-29 12:55 -0700
  Re: Code Included: Freeze column "John B. Matthews" <nospam@nospam.invalid> - 2013-05-29 16:29 -0400
    Re: Code Included: Freeze column clusardi2k@aol.com - 2013-05-29 23:53 -0700
      Re: Code Included: Freeze column "John B. Matthews" <nospam@nospam.invalid> - 2013-05-30 21:40 -0400
        Re: Code Included: Freeze column Haircuts Are Important <clusardi2k@aol.com> - 2013-05-31 11:19 -0700
          Re: Code Included: Freeze column "John B. Matthews" <nospam@nospam.invalid> - 2013-05-31 23:59 -0400
            Re: Code Included: Freeze column Haircuts Are Important <clusardi2k@aol.com> - 2013-06-03 10:18 -0700
              Re: Code Included: Freeze column Haircuts Are Important <clusardi2k@aol.com> - 2013-06-03 12:48 -0700
              Re: Code Included: Freeze column "John B. Matthews" <nospam@nospam.invalid> - 2013-06-03 23:03 -0400
                Re: Code Included: Freeze column Haircuts Are Important <clusardi2k@aol.com> - 2013-06-04 05:05 -0700
                Re: Code Included: Freeze column "John B. Matthews" <nospam@nospam.invalid> - 2013-06-04 23:04 -0400
                Re: Code Included: Freeze column Haircuts Are Important <clusardi2k@aol.com> - 2013-06-05 11:53 -0700
                Re: Code Included: Freeze column "John B. Matthews" <nospam@nospam.invalid> - 2013-06-05 16:02 -0400
                Re: Code Included: Freeze column Lew <lewbloch@gmail.com> - 2013-06-05 13:09 -0700
                Re: Code Included: Freeze column clusardi2k@aol.com - 2013-06-05 16:27 -0700
                Re: Code Included: Freeze column Lew <lewbloch@gmail.com> - 2013-06-05 17:35 -0700
                Re: Code Included: Freeze column "John B. Matthews" <nospam@nospam.invalid> - 2013-06-06 21:42 -0400
                Re: Code Included: Freeze column Haircuts Are Important <clusardi2k@aol.com> - 2013-06-10 09:34 -0700
                Re: Code Included: Freeze column "John B. Matthews" <nospam@nospam.invalid> - 2013-06-10 13:49 -0400
                Re: Code Included: Freeze column Lew <lewbloch@gmail.com> - 2013-06-04 12:17 -0700
                Re: Code Included: Freeze column Haircuts Are Important <clusardi2k@aol.com> - 2013-06-04 12:54 -0700
                Re: Code Included: Freeze column Lew <lewbloch@gmail.com> - 2013-06-04 14:17 -0700
                Re: Code Included: Freeze column Joerg Meier <joergmmeier@arcor.de> - 2013-06-05 00:12 +0200
                Re: Code Included: Freeze column "John B. Matthews" <nospam@nospam.invalid> - 2013-06-04 21:39 -0400
                Re: Code Included: Freeze column Lew <lewbloch@gmail.com> - 2013-06-04 19:48 -0700
                Re: Code Included: Freeze column Joerg Meier <joergmmeier@arcor.de> - 2013-06-05 07:36 +0200
                Re: Code Included: Freeze column Lew <lewbloch@gmail.com> - 2013-06-04 22:46 -0700
        Re: Code Included: Freeze column Haircuts Are Important <clusardi2k@aol.com> - 2013-05-31 11:35 -0700
          Re: Code Included: Freeze column Lew <lewbloch@gmail.com> - 2013-05-31 11:43 -0700
            Re: Code Included: Freeze column Haircuts Are Important <clusardi2k@aol.com> - 2013-05-31 11:50 -0700
              Re: Code Included: Freeze column Lew <lewbloch@gmail.com> - 2013-05-31 12:37 -0700
                Re: Code Included: Freeze column Haircuts Are Important <clusardi2k@aol.com> - 2013-05-31 12:44 -0700
          Re: Code Included: Freeze column Haircuts Are Important <clusardi2k@aol.com> - 2013-05-31 12:30 -0700

csiph-web