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 73604 - Support unrelated preferred gaps between components
Summary: Support unrelated preferred gaps between components
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Natural Layout (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker with 1 vote (vote)
Assignee: issues@guibuilder
URL:
Keywords:
: 73605 (view as bug list)
Depends on:
Blocks: 89585
  Show dependency tree
 
Reported: 2006-03-15 14:17 UTC by Jindrich Dinga
Modified: 2007-02-20 16:46 UTC (History)
5 users (show)

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 Jindrich Dinga 2006-03-15 14:17:46 UTC
According to guidelines, spacing between unrelated components must be:

Windows: 7 DU (11px)
Metal/Gnome: 12 px

In case a component has 3D effect, 1 pixel must be subtracted from the right and bottom side of the 
component.

The spacing is valid for default font size.

Windows guidelines:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwue/html/ch14e.asp
Metal guidelines:
http://java.sun.com/products/jlf/ed2/book/HIG.Visual2.html
Gnome guidelines:
http://developer.gnome.org/projects/gup/hig/2.0/design-window.html#window-layout-spacing
Comment 1 Jindrich Dinga 2006-03-15 14:20:06 UTC
Found in NB20060315-1215 version.
Comment 2 Jan Stola 2006-09-08 14:33:11 UTC
We plan to add support for unrelated paddings.
Comment 3 Tomas Pavek 2007-02-20 16:46:04 UTC
I've implemented support for two more preferred gaps (unrelated plus one even
bigger - see issue 73605 and issue 74313). So now there are three types of
default preferred gaps available:
- small which maps to LayoutStyle.RELATED
- medium which maps to LayoutStyle.UNRELATED
- large which currently maps to 18 pixels (not supported by LayoutStyle yet)


Integrated into form_promoh branch.

http://form.netbeans.org/servlets/ReadMsg?list=cvs&msgNo=4061
http://form.netbeans.org/servlets/ReadMsg?list=cvs&msgNo=4089
Comment 4 Tomas Pavek 2007-02-20 16:46:40 UTC
*** Issue 73605 has been marked as a duplicate of this issue. ***