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


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

Re: Where is the source?

Path csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From Andreas Leitgeb <avl@logic.at>
Newsgroups comp.lang.java.programmer
Subject Re: Where is the source?
Date Fri, 3 Nov 2017 13:45:25 -0000 (UTC)
Organization A noiseless patient Spider
Lines 20
Message-ID <slrnovosnl.774.avl@logic.at> (permalink)
References <41184dc1-97f9-46db-be03-b5685f8e3304@googlegroups.com> <slrnovopp6.774.avl@logic.at> <61359ae0-e0e7-4464-a4d7-78a908028127@googlegroups.com>
Reply-To avl@logic.at
Injection-Date Fri, 3 Nov 2017 13:45:25 -0000 (UTC)
Injection-Info reader02.eternal-september.org; posting-host="76b7cc834fc6acb7456aa861e6482d76"; logging-data="3501"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19/ueZ37g+BsaO9dRycrCW5"
User-Agent slrn/1.0.2 (Linux)
Cancel-Lock sha1:4HkrS5FJkE3iIVBlryfEizsiTCo=
Xref csiph.com comp.lang.java.programmer:37641

Show key headers only | View raw


Eric Douglas <e.d.programmer@gmail.com> wrote:
> I have source attached, using the file
> C:\Program Files\Java\jdk1.8.0_144\src.zip
> This gives me the source for JTable, which calls SwingUtilities2, which says it doesn't have source.

Well, seems like Oracle's src.zip just isn't complete.
In the hope that openjdk's and Oracle's version of that file aren't
all that different:

    public static int convertColumnIndexToModel(TableColumnModel cm,
                                                int viewColumnIndex) {
        if (viewColumnIndex < 0) {
            return viewColumnIndex;
        }
        return cm.getColumn(viewColumnIndex).getModelIndex();   // this is line 1988
    }

So, while your Table column model might not have been null, it
may not like the index that's being passed to its getColumn.

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


Thread

Where is the source? Eric Douglas <e.d.programmer@gmail.com> - 2017-11-03 05:23 -0700
  Re: Where is the source? Andreas Leitgeb <avl@logic.at> - 2017-11-03 12:55 +0000
    Re: Where is the source? Eric Douglas <e.d.programmer@gmail.com> - 2017-11-03 06:25 -0700
      Re: Where is the source? Andreas Leitgeb <avl@logic.at> - 2017-11-03 13:45 +0000
        Re: Where is the source? Eric Douglas <e.d.programmer@gmail.com> - 2017-11-03 06:51 -0700
          Re: Where is the source? Andreas Leitgeb <avl@logic.at> - 2017-11-03 14:12 +0000
            Re: Where is the source? Eric Douglas <e.d.programmer@gmail.com> - 2017-11-03 07:30 -0700
    Re: Where is the source? Eric Sosman <esosman@comcast-dot-net.invalid> - 2017-11-03 10:31 -0400

csiph-web