Not a Java bean error

Swing Designer allows you to quickly create the frames, panels, dialogs, applets and other UI elements that comprise Java Swing applications.

Moderators: Konstantin.Scheglov, gnebling, Alexander.Mitin, jwren, Eric Clayberg

Not a Java bean error

Postby CarlGundel » Tue Nov 30, 2004 7:52 am

Today I tried to use the Choose Panel option to add a custom JPanel subclass to a Swing window I am editing, and what showed up instead of my sub-pane was a rubber banded error "Not a Java bean. java.lang.NullPointerException null".

This is a very simple subclass of JPanel, with very little in it aside from the constructor (generated by the GUI editor) and a few accessors.

If I add a different JPanel subclass it works just fine.

I'm not trying to add a bean, so this shouldn't be happening, right? I'm using Designer 2.1.1 on Eclipse 3.0.1. My Changes.txt file is dated 10-28-04.

-Carl Gundel
CarlGundel
 
Posts: 1
Joined: Thu Oct 21, 2004 11:44 am

Re: Not a Java bean error

Postby Eric Clayberg » Tue Nov 30, 2004 8:39 am

CarlGundel wrote:Today I tried to use the Choose Panel option to add a custom JPanel subclass to a Swing window I am editing, and what showed up instead of my sub-pane was a rubber banded error "Not a Java bean. java.lang.NullPointerException null". This is a very simple subclass of JPanel, with very little in it aside from the constructor (generated by the GUI editor) and a few accessors.

Is this a direct subclass of JPanel? Or of a JPanel subclass? Is its superclass abstract or concrete? If abstract, this is a problem we fixed a week or so ago.

CarlGundel wrote:If I add a different JPanel subclass it works just fine.
I'm not trying to add a bean, so this shouldn't be happening, right? I'm using Designer 2.1.1 on Eclipse 3.0.1. My Changes.txt file is dated 10-28-04.

As that build is a month and about a dozen revisions old, I would suggest trying it with the latest v2.1.1 build. In any recent build, the "Not a bean" error will record additional details to the Eclipse ".log" file.
Eric Clayberg
Software Engineering Manager
Google
http://code.google.com/webtoolkit/download.html

Author: "Eclipse Plug-ins"
http://www.qualityeclipse.com
Eric Clayberg
Moderator
 
Posts: 4503
Joined: Tue Sep 30, 2003 6:39 am
Location: Boston, MA USA


Return to Swing Designer

Who is online

Users browsing this forum: Google [Bot] and 1 guest