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


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

Re: Code Included: Freeze column

Newsgroups comp.lang.java.programmer
Date 2013-06-05 16:27 -0700
References (7 earlier) <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> <nospam-AD9E78.16020405062013@news.aioe.org>
Message-ID <fe197e07-c44d-4852-b901-e9cd5c8478ba@googlegroups.com> (permalink)
Subject Re: Code Included: Freeze column
From clusardi2k@aol.com

Show all headers | View raw


On Wednesday, June 5, 2013 4:02:04 PM UTC-4, John B. Matthews wrote:
> In article <c4f1b073-9e07-4c7a-b1ee-c41ce897f98c@a8g2000yqp.googlegroups.com>, Haircuts Are Important <clus@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>

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 and 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 through n+25. So, I was wondering if it would be possible to be able to see more than 25 rows at a time apon a resize via a mouse drag.

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