Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Eric Sosman Newsgroups: comp.lang.java.programmer Subject: Re: Where is the source? Date: Fri, 3 Nov 2017 10:31:17 -0400 Organization: A noiseless patient Spider Lines: 27 Message-ID: References: <41184dc1-97f9-46db-be03-b5685f8e3304@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 3 Nov 2017 14:31:19 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="233450d4e73cebc3c4f52a28b97b651e"; logging-data="28536"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/kogWz7xv2ugYju/EEqZ4V" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 In-Reply-To: Content-Language: en-US Cancel-Lock: sha1:ix9QIBhQUuIR1em3kMvgGtNntqc= Xref: csiph.com comp.lang.java.programmer:37645 On 11/3/2017 8:55 AM, Andreas Leitgeb wrote: > Eric Douglas wrote: >> I'm calling javax.swing.JTable.convertColumnIndexToModel and it's crashing. >> All it tells me is >> Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException >> at sun.swing.SwingUtilities2.convertColumnIndexToModel(SwingUtilities2.java:1988) >> The column model is not null. The column should not be null. It would really help if I could see the line that's crashing. > > Last time I installed Oracle JDK (1.8.0_131), then its $JAVA_HOME > had a file named src.zip in it. (but version 8 doesn't seem to have > that particular class) ... because it's not part of "Java SE," but part of Snoracle's proprietary implementation thereof. > If you're using openjdk in Linux (e.g. debian or ubuntu), then you > might want to also install package "openjdk-9-source" > > As it seems, both openjdk-8-source and openjdk-9-source each have a > src.zip that does contain sun/swing/SwingUtilities2.java ... which might or might not resemble Sun's, but could be worth studying. -- esosman@comcast-dot-net.invalid Eleven hundred seventy-four days to go.