Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Flowlayout inside Flowlayout(Flowlayout issue)
Flowlayout inside Flowlayout [message #494542] Sat, 31 October 2009 10:02 Go to next message
No real name is currently offline No real name
Messages: 2
Registered: October 2009
Junior Member
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 11:55 Go to previous message
Alexandre  is currently offline Alexandre
Messages: 4
Registered: May 2010
Junior Member
Hi,

I think this will help you:

flowLayout = new FlowLayout();
flowLayout.setStretchMinorAxis(true);
Previous Topic:Selection Provider
Next Topic:From plugin to RCP: Save/Load functionality
Goto Forum:
  


Current Time: Tue Sep 30 16:00:39 GMT 2014

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

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