Skip to main content



      Home
Home » Eclipse Projects » GEF » Flowlayout inside Flowlayout(Flowlayout issue)
Flowlayout inside Flowlayout [message #494542] Sat, 31 October 2009 06:02 Go to next message
Eclipse UserFriend
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
Re: Flowlayout inside Flowlayout [message #531856 is a reply to message #494542] Thu, 06 May 2010 07:55 Go to previous message
Eclipse UserFriend
Hi,

I think this will help you:

flowLayout = new FlowLayout();
flowLayout.setStretchMinorAxis(true);
Previous Topic:Selection Provider
Next Topic:How to create GEF Examples
Goto Forum:
  


Current Time: Wed Jul 23 09:44:56 EDT 2025

Powered by FUDForum. Page generated in 0.32691 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top