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 130131 - 'Reset to Default' changes the size of JList
Summary: 'Reset to Default' changes the size of JList
Status: VERIFIED INVALID
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-14 11:35 UTC by pribyl
Modified: 2008-03-14 12:02 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description pribyl 2008-03-14 11:35:50 UTC
Insert JList element into a Form and leave its default size.
In the 'model' property press 'Reset to Default' button.
Besides removing all the Items, it also resizes the element.

As the 'Reset to Default' button for other properties (Border, BG color ... ) really resets only the appropriate property, it is quite unexpected behaviour.
Comment 1 Jan Stola 2008-03-14 11:48:25 UTC
This is as designed. The preferred size of the JList depends on value of the model property. Hence, it changes when the 
model changes. The preferred size on the other hand doesn't depend on bg color, for example.
Comment 2 pribyl 2008-03-14 12:02:04 UTC
I see. Thanks.

Verified as invalid