12-19-2011 05:07 PM
12-19-2011 05:22 PM
As First option you can use the screen transitions. Make sure that either your screens are in the ticker size or visible only in the ticker region.
Second option is implementing a field and overriding its paint method. Check out this link:
As a personal note, I used the transition a lot of time and it's pretty simple to use. On the other hand, it seems that a Field implementation is more suitable to this case.
12-19-2011 07:51 PM
I'm not 100% sure what you want here, so I will give you an idea and it might help refine what you are after. .
If you take any Field (including a Manager), then it will be painted using its paint method. You can override that method, set the globalAlpha, then call super.paint(..) and it should paint the Field with the opacity you have specified. So you can fade out, swap the elements in your hfm, and fade in, by overriding paint.
That does not however force an update of paint. The easiest way to do that is to invalidate() the Field.
So you have a Thread that does invalidate()s at regular intervals. In paint you figure out what opactiy you want and set that each time paint is called. When the Field will be hidden you update the Field - making sure that if you are going to cause it to re-layout, you do that separately from paint - using an invokelater Runnable.
This doesn't work 100% but exposes you to the nuts and bolts you will need to understand to do this.
Is that an option?