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 52636 - GridBagContraints Layout options of "Inset" should be separated into four different properties.
Summary: GridBagContraints Layout options of "Inset" should be separated into four dif...
Status: NEW
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: PC Windows ME/2000
: P4 blocker (vote)
Assignee: issues@guibuilder
Depends on:
Reported: 2004-12-17 23:52 UTC by jchensor
Modified: 2005-05-13 15:09 UTC (History)
0 users

See Also:
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description jchensor 2004-12-17 23:52:13 UTC
When dealing with the Inset options of the Layout 
properties for GridBagContraints in the Form 
editor, oftentimes Swing elements, for example, 
in the same Row will need the same Inset value 
for the top and bottom insets but not the left 
and right insets.  But because all four Inset 
values are contained in one property, altering 
just the bottom values or just the top values of 
two, three, or more items is not simple: you need 
to go to each element and modify just the bottom 
value one at a time so you don't touch the left 
and right values.

It would be nice if the four inset values were 
separated into four different options in the 
Layout section of Properties so that you can 
assign, for example, the same "left inset" value 
to all items on the left side of a JPanel without 
affecting their other inset values.  That would 
make adjusting the GridBagConstraint inset values 
very user-friendly.  It's a lot less rare that 
you would want to copy-paste all four values 
across multiple UI Elements at once.
Comment 1 Tomas Pavek 2005-05-13 15:09:54 UTC
Splitting the insets into individual values would be possible and probably more
usable. OTOH it would increase the number of gridbag constraints properties
which is high already know. Note you can do what you need probably better in the
GridBag layout customizer - you may modify particular inset via the arrow buttons.