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 129032 - Enhance ErrorMessagePanel with guaranteed moving errorLabel to the bottom of panel
Summary: Enhance ErrorMessagePanel with guaranteed moving errorLabel to the bottom of ...
Status: NEW
Alias: None
Product: installer
Classification: Unclassified
Component: NBI (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: Libor Fischmeistr
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-03 15:56 UTC by dlipin
Modified: 2014-02-10 14:15 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 dlipin 2008-03-03 15:56:15 UTC
Actually ErrorMessagePanel contains only one component - errorLabel - that is placed to the bottom of the wizard 
component with big Y (99), single height (1) and zero weight (0.0).

add(errorLabel, new GridBagConstraints(
        0, 99,                             // x, y
        99, 1,                             // width, height
        1.0, 0.0,                          // weight-x, weight-y
        GridBagConstraints.CENTER,         // anchor
        GridBagConstraints.HORIZONTAL,     // fill
        new Insets(11, 11, 11, 11),        // padding
        0, 0));                            // ??? (padx, pady)


If the user create a new panel with extension to ErrorMessagePanel and place some components on it all with zero width, 
then the design of such a panel would flaw. User should either make one component with weight-y >0 or add spacer panel 
(with big y and weight-y>1) after containerPanel. 
The right thing seems to be the addition of such a spacer panel that would move with guarantee the error label at the 
bottom of the panel above the errorLabel (e.g. with y=98, weight-y>1).
Comment 1 Jiri Rechtacek 2012-10-07 12:58:30 UTC
Assigned to new owner.