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 112739 - Setting constaints in the property editor will corrupt the .form file!
Summary: Setting constaints in the property editor will corrupt the .form file!
Status: VERIFIED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: App Framework (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-14 13:27 UTC by leroy
Modified: 2007-11-23 06:51 UTC (History)
0 users

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 leroy 2007-08-14 13:27:41 UTC
For example for a TabConstraints:

form file:
<Constraints>
                <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout"
value="org.netbeans.modules.form.compat2.layouts.support.JTabbedPaneSupportLayout$JTabbedPaneConstraintsDescription">
                  <JTabbedPaneConstraints tabName="tab1">
                    <Property name="tabTitle" type="java.lang.String" value="tab1"/>
                    <Property name="tabIcon" type="javax.swing.Icon" resourceKey="jPanel1.TabConstraints.tabIcon"/>
                  </JTabbedPaneConstraints>
                </Constraint>
              </Constraints>

properties file:

#NOI18N
explorePane.TabConstraints.tabTitle=my title

#NOI18N
explorePane.TabConstraints\ tabIcon=config.png

should be .tabIcon? but changing it to .tabIcon doesn't solve
the form will be loaded with errors, saying resource property has no value.

i hope to submit this issue in the right way, it's my first time!
Comment 1 Tomas Pavek 2007-08-17 17:12:12 UTC
I've fixed both problems. Thanks for report.

Changed files:
/cvs/form/src/org/netbeans/modules/form/layoutsupport/delegates/JTabbedPaneSupport.java
new revision: 1.18; previous revision: 1.17
/cvs/form/src/org/netbeans/modules/form/ResourceSupport.java
new revision: 1.12; previous revision: 1.11
/cvs/form/src/org/netbeans/modules/form/GandalfPersistenceManager.java
new revision: 1.190; previous revision: 1.189
Comment 2 Jiri Vagner 2007-11-23 06:51:27 UTC
Verified

Product Version: NetBeans IDE 6.0 RC2 (Build 200711191200)
Java: 1.6.0_04; Java HotSpot(TM) Client VM 10.0-b19
System: Linux version 2.6.20-15-generic running on i386; UTF-8; en_US (nb