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

Summary: use BorderFactory to reduce generated code
Product: guibuilder Reporter: _ gsporar <gsporar>
Component: Natural LayoutAssignee: issues@guibuilder <issues>
Status: RESOLVED FIXED    
Severity: blocker    
Priority: P4    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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