🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: the red component mistery

#1182
From: Tor Iver Wilhelmsen (TeamB)
Date: Fri, 30 Jan 2004 07:41
20 lines
1512 bytes
Paul Furbacher <pfurbacher@mac.com> writes:

> The JBuilder Help discussion on "red beans"
> indicates why this happens: the Designer
> cannot instantiate a class which does not
> have a no-parameter constructor.

For completeness' sake I'd also like to mention the two other cases
where it can happen:

1) When the no-arg constructor throws an exception. To overcome this
   you often need to surround code that's only relevant at run-time
   with

	if (!java.beans.Beans.isDesignTime()) {
		// ...
	}

2) When the component extends an abstract class. The solution is to
   declare a "proxy" concrete class for the designer.
Technical Details
Message-ID: <usmhx289b.fsf@ergo.no>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!nx02.iad01.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4019791d$1@newsgroups.borland.com> <401995d7$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,13c33929f7fcff3b
X-Google-Attributes: gid111d45,public
X-Google-ArrivalTime: 2004-01-29 23:54:27 PST
Sender: towi@SDSA4902
Newsgroups: borland.public.jbuilder.java.swing
Subject: Re: the red component mistery
References: <4019791d$1@newsgroups.borland.com> <401995d7$1@newsgroups.borland.com>
From: tor.wilhelmsen@ergo.no (Tor Iver Wilhelmsen (TeamB))
Date: 30 Jan 2004 08:41:36 +0100
Message-ID: <usmhx289b.fsf@ergo.no>
Lines: 20
X-Newsreader: Gnus v5.7/Emacs 20.7
NNTP-Posting-Host: 139.105.4.216
X-Trace: newsgroups.borland.com 1075448495 139.105.4.216 (29 Jan 2004 23:41:35 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newshosting.com!nx02.iad01.newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail