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 132196 - Custom border not saved if set as part of a compound border
Summary: Custom border not saved if set as part of a compound border
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker with 1 vote (vote)
Assignee: issues@guibuilder
URL:
Keywords:
: 219292 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-04-07 15:12 UTC by Tomas Pavek
Modified: 2013-09-01 16:25 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 Tomas Pavek 2008-04-07 15:12:25 UTC
1. Create a custom Border class implementation, build its project and install to palette. E.g.:
public class MyBorder extends javax.swing.border.LineBorder {
    public MyBorder() {
        super(java.awt.Color.BLACK);
    }
}

2. Invoke border property editor on a component, choose TitledBorder or CompoundBorder and try to set some of their
border property to the custom border.

The border is constructed, shown, and code is generated, but the border is not saved into the .form file - the
corresponding property is missing. After the form is reopened, the border is lost.
Comment 1 Tomas Pavek 2013-09-01 16:25:12 UTC
Fixed - added persistence support for custom sub-borders, including possibility to also have properties as beans (was not supported by code generator).

http://hg.netbeans.org/jet-main/rev/ca1c8d910b13
Comment 2 Tomas Pavek 2013-09-01 16:25:20 UTC
*** Bug 219292 has been marked as a duplicate of this bug. ***