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 94032 - Unable to set size for Panel Components via styleClass property
Summary: Unable to set size for Panel Components via styleClass property
Status: NEW
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P4 blocker (vote)
Assignee: Matt
Depends on:
Reported: 2007-02-02 19:31 UTC by bugbridge
Modified: 2009-05-25 21:07 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Note You need to log in before you can comment on or make changes to this bug.
Description bugbridge 2007-02-02 19:31:54 UTC
Reproducible wih FCS

 - Create Project
 - Add some panel component(Grid, Group or Layout)
 - clear its style property
 - Open stylesheet.css file and add new style class or copy this:
    .panelSize {
      background-color : aqua;
      left :0px ;
      width : 500px ;
      height : 600px ;
      position: absolute;
 - Switch to designer and set styleClass property of the panel component to
   this created class

Result: only color will be changed

still it could be setted via style property
Comment 1 Peter Zavadsky 2007-05-01 13:47:52 UTC
All are the components issue (you can find out after the steps done and once
they rendered [not as expected] by Ctrl-Shift-F2 which dumps into console how
they are rendered):

1) Group panel: it respects the style class set (via the styleClass property),
but it does set default size (that way blocking the one specified in the sheet).
2) Layout panel: the same like group panel
3) Grid panel: it is the worst, it doesn't even respect the class attribute set
via styleClass property.

Passing to components.