
|
If you were logged in you would be able to see more operations.
|
|
|
|
Issue Links:
|
Reference
|
|
|
|
This issue is related to:
|
|
UVE-349
Adding a composite to a box pane adds the composite with a preferred size of (20,20)
|
|
|
|
|
|
|
Description of a special szenario, but true for all custom widgets:
- create a class which extends from ULCToolBar (e.g. MyToolBar)
- add some buttons in it, save.
- Create a class which extends from ULCFrame
- create a border layout pane
- add the MyToolBar to the borderlayout pane
- add the borderlayoutpane to the frame.
--> the MyToolBar is not shown correctly on the canvas. During runtime everything is fine.
Reason: When no preferred size is set in ULC, there is no way to find out the preferred size computed of the layout manager in Swing. Therefore we just assume a "default" preferred size (20,20) during design time.
Workaround:
- set the preferred size to something meaningful in the frame class and wrap it in:
if (Beans.isDesignTime() {
toolbar.setPreferredSize(new Dimension(100, 50);
}
|
|
Description
|
Description of a special szenario, but true for all custom widgets:
- create a class which extends from ULCToolBar (e.g. MyToolBar)
- add some buttons in it, save.
- Create a class which extends from ULCFrame
- create a border layout pane
- add the MyToolBar to the borderlayout pane
- add the borderlayoutpane to the frame.
--> the MyToolBar is not shown correctly on the canvas. During runtime everything is fine.
Reason: When no preferred size is set in ULC, there is no way to find out the preferred size computed of the layout manager in Swing. Therefore we just assume a "default" preferred size (20,20) during design time.
Workaround:
- set the preferred size to something meaningful in the frame class and wrap it in:
if (Beans.isDesignTime() {
toolbar.setPreferredSize(new Dimension(100, 50);
} |
Show » |
|
UVE-349