|
Re: Setting labels transparent on a gradient (RSM like) [message #195889 is a reply to message #195821] |
Mon, 07 July 2008 07:27 |
Eclipse User |
|
|
|
Originally posted by: zippo29.hotmail.fr
Hi
To be more precise, it's about how to add element in a compartment
(atttribute to a class for example) and preserving the gradient i-e there
is no blank border. I think I have to make the compartment transparent but
I don't know how! The setOpaque(false) does not work.
thanks
|
|
|
Re: Setting labels transparent on a gradient (RSM like) [message #195896 is a reply to message #195889] |
Mon, 07 July 2008 07:58 |
Eclipse User |
|
|
|
Originally posted by: zippo29.hotmail.fr
NeverMind!
I always ask questions too quickly! Anyway if someone is interested :
I created a class that extends RectangleFigure and made the compartment
attribute in my container class figure instance of this class.
In the new class I overrided the fillShape method :
fillShape(Graphics g){ g.setAlpha(0);}
That's it
Sorry
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04973 seconds