Article View: borland.public.jbuilder.java.swing
Article #9675Re: Null pointer exception for JList-derived class
From: James Cook
Date: Mon, 14 Feb 2000 00:00
Date: Mon, 14 Feb 2000 00:00
25 lines
1597 bytes
1597 bytes
Janene, can you post any references to MyList from your jbInit method? Also, how did you go about adding MyList to your GUI while in the designer? Did you add MyList to the toolbar palette? jim <janene_r_mccrillis@my-deja.com> wrote in message news:889tfc$6bo$1@nnrp1.deja.com... > I have a class that I defined, call it MyList, that is based on JList. > It currently has nothing new beyond what JList supplies - I created it > using the JBuilder3 Class Wizard and haven't changed the results. When I > put that component into my GUI (in a Scrollpane) using the Designer and > run, I get a null pointer exception on the line which attempts to add > the MyList variable to the viewport of the Scrollpane. I've checked it > and the MyList is created properly and is not null, and the scrollpane > exists. Is there a step I've missed? > > Thanks for any help. > > Janene McCrillis > Lockheed-Martin Space Systems > > > Sent via Deja.com http://www.deja.com/ > Before you buy.
Technical Details
Message-ID:
<38a87c52.0@news.dot.state.oh.us>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<889tfc$6bo$1@nnrp1.deja.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,36010c081a23917d X-Google-Attributes: gid111d45,public From: "James Cook" <jimcook.spaminator@remove.for.spam.iname.com> Subject: Re: Null pointer exception for JList-derived class Date: 2000/02/14 Message-ID: <38a87c52.0@news.dot.state.oh.us> X-Deja-AN: 585898174 References: <889tfc$6bo$1@nnrp1.deja.com> X-Trace: 14 Feb 2000 17:06:10 -0500, dotfw001-dmz.dot.state.oh.us X-MSMail-Priority: Normal X-Priority: 3 Newsgroups: borland.public.jbuilder.java.swing X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211