🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #9672

Null pointer exception for JList-derived class

#9672
From: janene_r_mccrillis
Date: Mon, 14 Feb 2000 00:00
17 lines
1301 bytes
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: <889tfc$6bo$1@nnrp1.deja.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,36010c081a23917d,start
X-Google-Attributes: gid111d45,public
From: janene_r_mccrillis@my-deja.com
Subject: Null pointer exception for JList-derived class
Date: 2000/02/14
Message-ID: <889tfc$6bo$1@nnrp1.deja.com>
X-Deja-AN: 585701071
X-Http-Proxy: 1.0 x22.deja.com:80 (Squid/1.1.22) for client 204.68.140.35
Organization: Deja.com - Before you buy.
X-Article-Creation-Date: Mon Feb 14 21:52:45 2000 GMT
X-MyDeja-Info: XMYDJUIDjanene_r_mccrillis
Newsgroups: borland.public.jbuilder.java.swing
X-Http-User-Agent: Mozilla/4.61 [en] (WinNT; U)