|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
[nbusers] Matisse Form showing [invalid component]Somehow a component that I created, added to the
pallet, and susequently added to a Matisse form, has suddenly become
[invalid]!
My questions are what would have caused this to happen, and how do I recover without having to start from
scratch?
I cannot delete the component to reinsert it, nor
can I do anything with the form in general.
Any help appreciated,
Bill
|
|
|
Re: [nbusers] Matisse Form showing [invalid component]Found the 'Reload Form' from the forms context menu
under the Files tab in the browser. This seems to have
worked.
Sorry for any trouble.
Bill
|
|
|
Re: [nbusers] Matisse Form showing [invalid component]Hello Everyone,
I'm facing what appears to be the same issue as Bill. I have a form with a custom widget on it. When the project is opened for the first time, the widget does not appear on the form. Instead, there is a red box with "Invalid Component" written in its place. The form generated code for object declaration should have been "private Projects.BeachComber3.Files.JTableX some_object" - the package is Projects.BeachComber3.Files and the custom widget is JTableX. This has been replaced with "private org.netbeans.modules.form.InvalidComponent some_object" in the code. At this point, with no modifications to the form, I am able to compile and run the application. The build errors start when the form is modified (maybe a regen event is triggered?) and from here on, I am not able to get the project to compile. This is the build error - "D:\Profiles\TBMD87\My Documents\Beachcomber\Projects\BeachComber3\Files\Beach.java:8733: package org.netbeans.modules.form does not exist". I tried reloading the form (Ctrl+Shift+R or right-click on form name in the Inspector window), but was not able to solve the problem. Here's some details from the log file - Product Version = NetBeans IDE 6.1 (Build 200805300101) Operating System = Windows XP version 5.1 running on x86 Java; VM; Vendor = 1.6.0_07; Java HotSpot(TM) Client VM 10.0-b23; Sun Microsystems Inc. Runtime = Java(TM) SE Runtime Environment 1.6.0_07-b06 Java Home = C:\Program Files\Java\jdk1.6.0_07\jre I am a complete newbie to this, and would really appreciate any help! Please let me know if I need to post any specific information. Thanks in advance, AndyM
|
|
|
Re: Matisse Form showing [invalid component]Delete the invalid component from the form (in the GUI builder). It appears in
the form when some component used in the form cannot be found - typically you remove the JAR file from which it was installed to palette, or forget to compile its class if it comes from another project. When the GUI builder cannot find the component, it uses a placeholder "invalid component" in the design. (However - it should never be generated into the code nor saved with the form as invalid - that is probably a bug.) - Tomas AndyM wrote: > Hello Everyone, > > I'm facing what appears to be the same issue as Bill. I have a form with a > custom widget on it. When the project is opened for the first time, the > widget does not appear on the form. Instead, there is a red box with > "Invalid Component" written in its place. The form generated code for object > declaration should have been "private Projects.BeachComber3.Files.JTableX > some_object" - the package is Projects.BeachComber3.Files and the custom > widget is JTableX. This has been replaced with "private > org.netbeans.modules.form.InvalidComponent some_object" in the code. At this > point, with no modifications to the form, I am able to compile and run the > application. The build errors start when the form is modified (maybe a regen > event is triggered?) and from here on, I am not able to get the project to > compile. This is the build error - "D:\Profiles\TBMD87\My > Documents\Beachcomber\Projects\BeachComber3\Files\Beach.java:8733: package > org.netbeans.modules.form does not exist". > > I tried reloading the form (Ctrl+Shift+R or right-click on form name in the > Inspector window), but was not able to solve the problem. Here's some > details from the log file - > > Product Version = NetBeans IDE 6.1 (Build 200805300101) > Operating System = Windows XP version 5.1 running on x86 > Java; VM; Vendor = 1.6.0_07; Java HotSpot(TM) Client VM 10.0-b23; > Sun Microsystems Inc. > Runtime = Java(TM) SE Runtime Environment 1.6.0_07-b06 > Java Home = C:\Program Files\Java\jdk1.6.0_07\jre > > I am a complete newbie to this, and would really appreciate any help! Please > let me know if I need to post any specific information. > > Thanks in advance, > AndyM > > > Bill Slack wrote: >> Somehow a component that I created, added to the pallet, and susequently >> added to a Matisse form, has suddenly become [invalid]! >> >> My questions are what would have caused this to happen, and how do I >> recover without having to start from scratch? >> I cannot delete the component to reinsert it, nor can I do anything with >> the form in general. >> >> Any help appreciated, >> Bill >> >> > |
|
|
Re: Matisse Form showing [invalid component]Tomas,
Thank you for the quick reply. I've tried deleting the component and adding it afresh by doing a drag-and-drop from the custom class. This way, I'm able to compile and run even with modifications to the form. But the IDE abruptly closes time to time, and when I re-open the project, the red boxes are back. There is typically a java.lang.NullPointerException just before it shuts down. I don't know if it's related, but there are buttons on the form which have icons and every time the IDE closes like I said, the icons disappear too. When this happens, the project opens with an "Error loading component" message, and I have to go back and add the icons again. Any ideas? Appreciate your help. AndyM
|
| Free embeddable forum powered by Nabble | Forum Help |