Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumsplacing child and parent to same dimension and simultaneously placing childrens on both layers
https://www.eclipse.org/forums/index.php/mv/msg/239487/724144/#msg_724144
LayeredPane pane = new LayeredPane();
final Layer figure = new FreeformLayer();
figure.setLayoutManager( new FreeformLayout() );
figure.setBorder( new LineBorder( 1 ) );
figure.setForegroundColor( ColorConstants.red );
pane.add(figure);
return pane;
now i have an child1 with createfigure coding
final Layer figure = new FreeFormLayer();
figure.setLayoutManager( new FreeformLayout() );
figure.setBorder( new LineBorder( 2 ) );
figure.setForegroundColor( ColorConstants.green );
figure.setOpaque(true);
return figure;
my problem is bothe freeform layer gets added to the primary layer . i must be able to place the other model edit parts on both these layers . i am not able to place my other childrens on the below layer why?
i am able to place the children on the parent layer only if i give setopaque as false in child1 and when i do so i can not place children of child1?
]]>karthick9686@gmail.com Missing name2011-09-11T03:10:37-00:00