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 71244

Summary: Minimum size of resizing component
Product: guibuilder Reporter: Tomas Pavek <tpavek>
Component: CodeAssignee: issues@guibuilder <issues>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description Tomas Pavek 2006-01-10 18:09:25 UTC
Allow the user to change the minimum size of resizing components - whether it
should be 0, or whether component's minimum size should be honnored. Perhaps the
default state then should be 0 for components whose minimum size depends on
content, like labels, buttons, comboboxes. The problem is when the content
(text) changes so it does not fit in the component - then it perhaps should be
cut, not the component should grow. However, in general both cases are valid.

See also issue 68612 - which we fixed just by treating the combobox specially.
But the same problem may happen e.g. with a label showing file names (paths) -
that is supposed to cut the text if it is too long, not to grow.
Comment 1 Tomas Pavek 2006-01-12 16:36:56 UTC
Strange thing also happens with JTextArea with line wrap set to true. It can't
be shrunk once made bigger - if the minimum size it provides is taken seriously.