This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 28007 - new TopComponent template is broken
Summary: new TopComponent template is broken
Status: VERIFIED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Templates (show other bugs)
Version: 3.x
Hardware: PC Linux
: P3 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on: 29684
Blocks:
  Show dependency tree
 
Reported: 2002-10-15 02:20 UTC by _ jrichard
Modified: 2005-07-13 13:20 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ jrichard 2002-10-15 02:20:39 UTC
JDK 1.4.1, RedHat 7.3, NetBeans 3.4

I just used the update center to get the latest
(2.13.1) Open APIs
Support.

When I use the New... template to create a new top
component
I get several errors.  First I get I get a message:
    Warning - Form loaded with Errors
    Due to errors occurred when loading the form,
some data could
    not be loaded.  It is not recommended to use
this form now -
    some data would be lost after saving the form.
 Please go
    though the reported errors, try to fix them,
and open the
    form again.

There are also several error dialogs all like:
        Error in loading component property
        [TopComponent]->formSize
        No such property exists in the component.
The other dialogs complain about ->generateCenter,
->generateSize,
->generatePosition, ->formSizePolicy, and
->formPosition.

It doesn't seem to cause a problem, and I don't see
the errors if I close and open the form again.
Comment 1 Jesse Glick 2002-10-15 19:09:22 UTC
Possible form compatibility problem? Would be nice if Form Editor
developers could take a look at this. Of course it should not be hard
to regenerate the form, but there might be a compat bug in the Form
Editor that should be fixed.
Comment 2 Tomas Pavek 2002-10-16 11:10:40 UTC
TopComponent_form template file seems to be wrong. It is 
of JPanel type, but contains "synthetic" properties which 
only frame forms may have. Don't know how it could happen, 
but the fix is easy: delete whole <SyntheticProperties> 
element from the file. The reason this did not show up 
sooner is that form editor used to ignore such errors...
Comment 3 Jesse Glick 2002-12-21 00:30:03 UTC
Easy enough to fix, though because of issue #29684 the Test Form
action is broken for TC's.
Comment 4 Jesse Glick 2002-12-21 08:22:55 UTC
committed     Up-To-Date  1.2        
apisupport/src/org/netbeans/modules/apisupport/resources/templates/Window_System_API/TopComponent_form
Comment 5 Marian Mirilovic 2005-07-13 13:20:36 UTC
closed