|
|
Re: Need help with an internal error issue. SOLVED! [message #870051 is a reply to message #869927] |
Sun, 06 May 2012 03:23 |
Marc Chamberlin Messages: 27 Registered: July 2009 |
Junior Member |
|
|
On 5/4/2012 1:35 PM, Eric Clayberg wrote:
> The problem here is that your custom Swing component, TestJFloatPanel,
> is not a valid JavaBean as it does not have a default constructor. Add
> the missing default constructor and it works fine...
>
> public TestJFloatPanel() {
> // Set up the panel-inside-a-panel structure; we start off
> // unfloated
> setLayout(new BorderLayout());
> }
Thanks a million Eric, it appears you got me pointed in the right
direction at least! I guess I didn't realize that when you subclass a
Swing component, it has to adhere to the requirements of being a
JavaBean as well. I tend to avoid beans because of the requirement for a
default constructor, when I am coding, I get queasy about the fact that
an object can be in an invalid state between instantiation time and
initialization. Anywise, I figured it must have been something simple
that I was overlooking.. :-(
So appears the WindowBuilder is a happy camper for the moment, but since
I am attempting to resurrect some pretty old Java code, built back in
04, may hit a few more hiccups along the way... Again thanks a lot,
really appreciate it...
Marc...
|
|
|
Powered by
FUDForum. Page generated in 0.03936 seconds