Flowlayout inside Flowlayout [message #494542] |
Sat, 31 October 2009 06:02  |
Eclipse User |
|
|
|
Dear All,
I have got the Diagram figure with a FlowLayout and I want to create a child figure with a FlowLayout and if it is placed in the Diagram figure, than it should stretch fully horizontally i.e width of the diagram figure. The child figure is coded like below.
IFigure contentPane = new ScalableLayeredPane();
contentPane.setLayoutManager(new FlowLayout());
contentPane.setBackgroundColor(ColorConstants.lightGray);
contentPane.setOpaque(true);
add(contentPane);
Child figure is not fully stretched while placing it in Diagram figure. I would be greatly appreciated if you advise what changes need to be done to make the width same as parent.
Thanks.
Raja
|
|
|
|
Powered by
FUDForum. Page generated in 0.32691 seconds