Article View: borland.public.jbuilder.java.swing
Article #535Re: Design window turning red (now NullPointer)
From: Magnus
Date: Tue, 07 Jun 2005 03:39
Date: Tue, 07 Jun 2005 03:39
44 lines
2619 bytes
2619 bytes
I found my problem
I declared some Icons like:
ImageIcon redIcon, yellowIcon, greenIcon;
After some hours making a backup and deleting part after part it turned
out the I have to declare it as:
ImageIcon redIcon;
ImageIcon yellowIcon;
ImageIcon greenIcon;
The program worked but the designer was corrupt. Now I know!
Magnus wrote:
> I got rid of all read beans :)
>
> Now I have a "java.lang.NullPointerException" :(
>
> I have gone back to an older version without this problem and compared
> the constructors without any luck. I commented out 99.9% of the
> constructor and jbinit but still no luck.
>
> The only message jBuilder2005 gives me is as above. No rows, or fields
> or methods or anything to work on.
>
> Anyone who have any tips on how to find the problem? Can the problem be
> in the order of declarations?
>
> Magnus wrote:
>
>> Superthanks for your input. Some of it I understand and some of it I
>> don't.
>> I have followed multiple tutorials and and implemented to fit my need.
>>
>> This is what I have:
>> An application where using a tree to display what is in the DB and
>> used for selection (that then triggers actions). A tree is used in a
>> couple of different screens. The tree is only to show values and
>> enable easy navigation and selection.
>>
>> My tree implementation:
>>
> [cut]
Technical Details
Message-ID:
<42a516f8$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42762745@newsgroups.borland.com> <42769338$1@newsgroups.borland.com> <4292a4e3@newsgroups.borland.com> <42932c57@newsgroups.borland.com> <4299abf1$1@newsgroups.borland.com> <429b3eba$1@newsgroups.borland.com> <42a06925$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,bddfb924687a12a0 X-Google-Attributes: gid111d45,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Mon, 06 Jun 2005 23:39:44 -0400 From: Magnus <magnus_bjorkman@iwon.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: en-us, en, sv MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing Subject: Re: Design window turning red (now NullPointer) References: <42762745@newsgroups.borland.com> <42769338$1@newsgroups.borland.com> <4292a4e3@newsgroups.borland.com> <42932c57@newsgroups.borland.com> <4299abf1$1@newsgroups.borland.com> <429b3eba$1@newsgroups.borland.com> <42a06925$1@newsgroups.borland.com> In-Reply-To: <42a06925$1@newsgroups.borland.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 71.0.99.227 Message-ID: <42a516f8$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1118115576 71.0.99.227 (6 Jun 2005 20:39:36 -0700) Lines: 44 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail