Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to center Rows of FlowLayoutManager ?
How to center Rows of FlowLayoutManager ? [message #536274] Thu, 27 May 2010 14:16
Patrick Schmitt is currently offline Patrick SchmittFriend
Messages: 87
Registered: July 2009
Member
Hello guys,
I am using FlowLayoutManager to place Figures in a row in the center of my panel.
Problem is that i cant center the row, it just starts at the top of the screen. Anything i tried is not working.

Here my code when creating the Layer using the FlowLayoutManager

		FreeformLayer  retVal = new FreeformLayer  ();

		FlowLayout lay = new  FlowLayout();
		lay.setMajorAlignment(FlowLayout.ALIGN_CENTER);
		
		
		// setting this prevents multiple selection from working
		retVal.setOpaque(true);
		retVal.setBackgroundColor(ColorConstants.green);
		retVal.setLayoutManager(lay);
		
		return retVal;


Here a picture. you can see where i want to place the row:
http://s7.directupload.net/images/100527/pxu4vav2.jpg

Any help would be appreciated!

Sincerly
Patrick
Previous Topic:Zest examples?
Next Topic:disable multi resize
Goto Forum:
  


Current Time: Fri Mar 29 05:33:43 GMT 2024

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

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

Back to the top