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 11814 - Improve default GridBagConstraints values for components in GridBagLayout
Summary: Improve default GridBagConstraints values for components in GridBagLayout
Status: VERIFIED WONTFIX
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
: 32578 51007 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-04-27 16:58 UTC by eakle
Modified: 2006-04-24 14:01 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 eakle 2001-04-27 16:58:40 UTC
We should try to make the users job easier when they create and customize a 
gridbaglayout.  Currently it seems that every component type gets the same 
initial set of GridBagConstraints values (as seen in the gridbaglayout 
customizer).  This is not always a good default set for all component types. In 
particular the "fill" value should not be "none" by default for the containers 
JPanel and JTable (it should probably be "both" by default) -- that is probably 
what the user will want, and "none" is almost surely not what they will want.

The current default value of "fill=none" can cause users debugging problems 
where they run their new window and do not see their JPanel or JTable component 
at all, or it is very small, and it can be hard to figure out what is wrong.
The user will wonder "where is my container?" and they may check minimum and 
preferred sizes, etc. when the problem is really the default "fill" value we 
gave it.

This is a particular example, but a fairly important one I believe, as I have 
seen it cause problems and waste time. There may be other cases too where 
different defaults would be good, and I will try to watch for those, and if I 
find any in the future I will add them to this enhancement request.
Comment 1 Marian Mirilovic 2001-05-17 14:26:55 UTC
Target milestoen -> 3.3
Comment 2 Marian Mirilovic 2001-05-30 08:34:07 UTC
self-platform(os)
Comment 3 Jan Chalupa 2001-11-27 12:38:22 UTC
Target milestone -> 3.3.1.
Comment 4 Marek Grummich 2002-07-22 09:57:23 UTC
Set target milestone to TBD
Comment 5 Marek Grummich 2002-07-22 10:00:46 UTC
Set target milestone to TBD
Comment 6 Tomas Pavek 2003-04-04 15:47:20 UTC
*** Issue 32578 has been marked as a duplicate of this issue. ***
Comment 7 Tomas Pavek 2004-11-02 10:56:29 UTC
*** Issue 51007 has been marked as a duplicate of this issue. ***
Comment 8 Tim Lebedkov 2004-11-02 17:09:06 UTC
Comment from #51007

Don't add components to a container with gbl using grix,y = RELATIVE

such components land in the cell (1, 0) as I don't
use the RELATIVE and IMHO it is much easier to
place  the components per DnD instead of using
RELATIVE.
Comment 9 Tomas Pavek 2005-05-16 18:17:52 UTC
We don't plan to extend the gridbag layout support anymore - there will be a new
layout design support soon.
Comment 10 Tim Lebedkov 2005-08-12 11:32:01 UTC
What does it mean?
Do you really want to drop the GBL-support and loose thousands of
existing forms (and maybe users)?
Comment 11 Tomas Pavek 2005-08-12 12:33:19 UTC
Sorry if I was not clear. We don't intend to drop the gridbag layout support. We
just don't plan to do any new development on it.
Comment 12 Tomas Pavek 2005-08-15 08:55:06 UTC
Closing again...
Comment 13 Tim Lebedkov 2006-04-24 14:01:15 UTC
ok