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 61691 - use BorderFactory to reduce generated code
Summary: use BorderFactory to reduce generated code
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Natural Layout (show other bugs)
Version: 5.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-02 21:12 UTC by _ gsporar
Modified: 2005-09-13 10:30 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ gsporar 2005-08-02 21:12:15 UTC
BorderFactory is not currently used in the generated code.  The end result is
potentially a large number of "new javax.swing.border.EmptyBorder()", etc.  This
imposes a small penalty at runtime; use of BorderFactory would be more efficient.
Comment 1 Tomas Stupka 2005-09-13 10:30:33 UTC
Fixed in trunk.

Deleted files:
org/netbeans/modules/form/ConstructorsDescriptor.java

Modified files:
org/netbeans/modules/form/CreationDescriptor.java
org/netbeans/modules/form/JavaCodeGenerator.java
org/netbeans/modules/form/CreationFactory.java