[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.tools.gef] Re: Changing EditPart color
|
Setting the background color on the figure should be enough (it will call
repaint()). If you're not seeing anything that's most likely because your
figure is not opaque. setOpaque(true).
"CL [dnoyeb] Gilbert" <Lamont_Gilbert@xxxxxxxxxxxxxxxxx> wrote in message
news:d1fjgv$sav$1@xxxxxxxxxxxxxxxxxx
> I have an editpart that I changed. Just like in the counter example
> where the counter is incremented. Except only the color of my figure
> changes.
>
> I have set the new background figure color in my editpart, but how do I
> get the thing to show with the new color?
>
> repaint, invalidate, revalidate have not done anything. Also the
> documentation of these 3 methods is quite lacking.
>
>
> Thanks for the tip.
>
>
> CL