| [news.eclipse.modeling.gmf] Re: Center a Label in a Node |
Hi Cecilia,
you have to change the Layoutmanager of your Node-Figure. By default this Layout is FlowLayout. You may change it to BorderLayout and add the label to center.
This should do it:
figure.setLayoutManager(new BorderLayout()); figure.add(label, PositionConstants.CENTER);
Hello, I don't know how to center a label within a node, thank you very much, Cecilia.