[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.gmf] Re: Center a Label in a Node

Hello Cecilia,

you get the error "index doesn`t exist", because you use the wrong constant.
Uwe told you to use PositionConstants.CENTER. But instead you have to use BorderLayout.CENTER. Apperently they`re not the same int.


This is the API of draw2d: http://help.eclipse.org/stable/index.jsp?topic=/org.eclipse.draw2d.doc.isv/reference/api/org/eclipse/draw2d/package-tree.html When you look at BorderLayout, then you can see, that it has its own constants for positioning.

I had the same problem yesterday :)

Best wishes
Julia